View Single Post
 
Old 07-14-2014, 11:36 AM
aznative aznative is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Jul 2014
Posts: 1
aznative is on a distinguished road
Angry Programatically change macros for existing templates

Is it possible? How do I...?
Trying to determine a (best) way to **programatically** change out the macros for templates scattered across many sites. The requirements have changed and the macros need to be upgraded and enhanced. Macros include AutoNew, AutoExit, etc. in addition to several AddOn menu event actions. Need to retain the other template objects as is (AutoText, Styles, menu AddOns, etc.) but replace the macros. Each site can have any number of templates, and the templates are all unique; so cannot just switch out the templates in mass. Would be nice to just strip off the existing macro module (using VBA) from each template and replace it, then resave the template. But have not found any way to accomplish that.

Any suggestions as to how best to accomplish this?
Reply With Quote