View Single Post
 
Old 04-20-2021, 05:46 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by GoChatter View Post
Thank you Paul! Really wish I had some programming knowledge. I have another question... Where should I paste the code? When I look at your document, I only see it in the VBA area; not the Macro area. However when I copy the code and paste it into my word document, nothing happens when I select something from the drop down menu.
The code goes in the 'ThisDocument' code module of the document (as is the code in the 'demo' document I posted) or, if you're using a particular template and want to have all the document based on that template have access to the same code, in the 'ThisDocument' code module of that template. The latter would also allow your documents to be saved in the docx format.

Macros that take arguments (in this case ByVal ContentControl As ContentControl, and Cancel As Boolean) are not accessible via the GUI.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote