Thread: [Solved] Losing VBA codes in .dotm
View Single Post
 
Old 04-09-2012, 03:43 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,375
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote