View Single Post
 
Old 10-13-2022, 04:15 PM
data808 data808 is offline Windows 10 Office 2019
Novice
 
Join Date: Oct 2022
Posts: 16
data808 is on a distinguished road
Default 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.
Reply With Quote