-
QAT removal in VBA
I have defined a template .dotm file with macros activated by QAT buttons.
Based on the template, an ordinary .docm file can be made, filling in fields and adding text. The QAT buttons invoke code in the template to perform some checking or formatting. When the future .docm file is created from the template by double clicking it, it opens as "Document1" (to be saved under a .docm name later) with a single set of QAT buttons (those of the template).
However... once the "Document1" is saved and closed as .docm file, upon re-opening it, it has 2 sets of identical QAT buttons. One from the template and one from the .docm itself (both referring to the macros in the template).
How can I avoid the .docm to get a copy of the template QAT buttons? I did not expect this, as the macro modules are not copied and remain exclusively in the template project
(with one exception: the "openclose" module with AutoOpen/AutoClose is copied upon the documents AutoNew creation event containing:
Application.OrganizerCopy "C:\template1.dotm", "Document1", "openclose", wdOrganizerObjectProjectItems
)
Or if not, how can I remove the QAT on the .docm file so effectively one set of QAT buttons from the template remain?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules