Word 2016 Date picker control's default month/year - Microsoft Community


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

Popular posts from this blog

Can't Sign-in to OneDrive - Microsoft Community

Shared mailbox permissions - Microsoft Community

Outlook 2016 for Mac - Multiple Issues, Error 17884 - Microsoft Community