hi
i'm creating lots of word templates date picker. when inserted template view current month , year. after while customers view current month , year instead of month , year control created. know has today button in it, difficult. how keep view in current month. can't use insert > date , time default text of control has guidetext in that.
thanks
pirate
you use on-entry macro coded as:
private sub document_contentcontrolonenter(byval cctrl contentcontrol)
cctrl
if .title = "mydate" then
if .range.text <> format(now, .datedisplayformat) then
.range.text = format(now, .datedisplayformat)
end if
end with
end sub
but you'd want little more nuanced that, updates displayed date time month/year changes.
Office / Word / Windows 10 / Office 2013
Comments
Post a Comment