Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arlan - 22 Jun 2005 05:26 GMT
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!
Anne Troy - 22 Jun 2005 07:42 GMT
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

> 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
[quoted text clipped - 3 lines]
>
> THANKS!
Arlan - 22 Jun 2005 09:45 GMT
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!

> 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
[quoted text clipped - 18 lines]
> >
> > THANKS!
Anne Troy - 22 Jun 2005 22:26 GMT
Would have to see the code and test it, Arlan. Are you sure macros are
enabled on the XP machine?
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com

> 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
[quoted text clipped - 24 lines]
> > >
> > > THANKS!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.