![]() |
|
#7
|
|||
|
|||
|
Quote:
Ok, so what you're saying is if i have 5 different document templates, I create the templates without code or the CustomUI, and another template with all of the code and CustomUI for all 5 documents? Currently, i am using the 'Document_New()' event of the template (in the 'ThisDocument' Microsoft Word Objects space) to run the code to set up the document (shows a userform to collect data, and populates the document). To move the code to a 'Master' template, I'd need to move this activation to an app event handler "App_NewDocument(ByVal Doc As Document)" event in the Master template, then I'd need to determine which template created the active document, and run the setup function(s) needed for that specific template? Is this the proper workflow? Edit: after thinking about this, i might be able to keep all of the code for the setup of the document in the content template, and move the rest of the UI specific code to a separate 'Master' since that's mostly for editing/updating the document once it's created. Theres's a 'New XXXX Document' button to create a new document from the specific template, but that would just need to create the document, and the rest of the code would work as usual. I very much appreciate your assistance, and patience, with me. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Saving Notes View into Word Template | caz46 | PowerPoint | 0 | 06-24-2015 01:29 AM |
| Removing digitally signing when saving | plasma | Word | 0 | 05-26-2015 08:36 AM |
| Saving a template file | dreamz | Word VBA | 10 | 06-26-2014 04:38 AM |
Looking for best way to remove VBA and CustomUI from a file via VBA
|
Cosmo | Word VBA | 1 | 04-25-2014 06:19 PM |
| Update Document Template when Saving the Document File | bjbercaw | Word | 3 | 11-16-2010 02:03 PM |