Question
Thanks. Not sure what formfields are but I think all the controls I have in my document were selected from what shows on the ribbon at the top of the window and those items all seem to say content controls when I hover my mouse cursor over them. I read that legacy controls were inside the toolbox icon and I haven't used any of those. So pretty sure all of the text boxes and date pickers are from the content control section.
Would you be able to give me the VBA to select the date picker content control? I tried this on the open event of the document and it doesn't seem to work. Btw, I named the date picker title and tag "test":
ActiveDocument.SelectContentControlByTag (test)
Also tried:
ActiveDocument.SelectContentControlByTitle (test)
Not sure what I am doing wrong.
|