I created template1 that has an AutoNew macro that adds in code from a common template. The common template does the real work, setting some fields, and it has a toolbar with style buttons.
When the documents based on template1 are first opened, the toolbar is there, but when they are later opened, the new toolbar is not there. When I go into Tools | Macro | Macros, and look for the attached template, it is not there. But when I single click on AutoNew, the attached template gets added to the list of addins under Tools | Templates and Addins, and the
toolbar shows up. I don’t have to run or edit AutoNew; it only requires selecting it.
Is there something I neglected to do in either template1 or the common template, or do I need an AutoOpen macro that does pretty much what the
AutoNew does: adds in the common template? I don’t want the code in the common template to execute again – I just want the toolbars available and the macros available if someone clicks on a button that invokes them. What happens when I select but not execute the AutoNew is exactly what I want to happen when the documents based on template1 are re-opened.
What gets executed when I single click to select the AutoNew macro? Is that a simple command that I can put in an AutoOpen?
I sure hope someone understands this.