Discussion:
|
When Word is loaded it creates a blank document with the contents of Normal.dot. This code gives the user the choice to make the opening document use a diffeent template than normal.dot.
It uses AutoExec to get a user response, and depending on that response either proceeds to make the regular blank document (based on normal.dot), or a new document based on a specified template. If the user does choose to have a document based on your template file, that file REPLACES the normal blank document. In other words, IT is Document1.
You could easily make a UserForm with a dropdown box listing what templates are available.
You could also easily adjust this so Word never makes a blank document from normal.dot.
NOTE: this code fires when Word itself is first loaded, using AutoExec. To make similar code for the New button, use Document_New. It is important to note that the code must be put into normal.dot itself.
|