Event to run some code when a VBA template is loaded into Word XP

A

Arlan

In Word 2003 there is the Document_Open which I have used to load a command
bar, etc. when a document is opened with an attached VBA template. I think
that I read of an event to accompish the same thing for Word XP but I don't
remember and can't find. Is there an event that will allow me to run startup
VBA code?

THANKS!
 
A

Anne Troy

Not sure what you mean by "startup", Arlan. The Document_Open has been
around for several versions now (since 97, I think). Perhaps you want the
Document_New, which fires when a new document is created FROM a template?
There's also Auto_open and auto_new, but I guess they're kinda frowned upon,
not sure what the status is on those anymore.
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com
 
A

Arlan

Thanks for taking the time to reply Anne, I guess that I assumed when it
didn't fire that the document_open event wasn't supported in Word XP. If
Word XP didn't run the code in document_open could that mean that there is
somthing that I have to do to enable that event so that it is triggered?
Again, THANKS!
 
Top