![]() |
|
#1
|
||||
|
||||
![]()
Hi tinfanide,
If you want the macro to fire when you create a new document from the template, you need a Document_New macro. All it needs to do is to call your Document_Open macro. However, as your template doesn't have a table, the macro will throw an error. That will also happen to the new document once it's been saved without a table. And, if you add a properly-formatted table to the template, you won't need the Document_New macro. PS: You can attach dotm files, etc by converting them to zip archives first.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Well, thanks for the second point about converting files to zips.
But for the first point, What I meant was 1. Create a .dotm file 2. Open the .dotm file (itself) (right-click the file, click "Open") 3. Go to VBE 4. Under the Project panel, in the TemplateProject section, enter some codes whatever 5. Save the .dotm file 6. Close the .dotm file 7. Open the .dotm file (itself) again (right-click the file, click "Open") 8. Go to VBE 9. The codes disappear I don't know why the codes have disappeared. |
![]() |
Tags |
dotm |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kenglade | Word | 3 | 12-19-2011 04:00 PM |
![]() |
Aiken_Bob | Word | 4 | 05-02-2011 02:41 PM |
How to use .dotm template extension in MS Word? | dude444 | Word | 0 | 09-20-2010 09:34 AM |
template dotm unable to load in word 2003 | dude444 | Word | 0 | 09-16-2010 02:13 PM |
![]() |
stevebond001 | Word | 1 | 05-11-2010 10:49 AM |