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 / September 2005

Tip: Looking for answers? Try searching our database.

How to execute AddIn Code when I create a new Document? (Word 2000)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J. Steinblock - 27 Sep 2005 12:35 GMT
Hi,

i need to create an addIn that executes every time I create a new document.
I saved an word document as a *.dot and put it in the add_in path. Then I  
created a module with a sub AutoExec.
If I start word.exe the code is executed. But if I select FILE -> NEW ->  
EMPTY DOCUMENT the code isn?t executed again.

Any suggestions?

Windows XP SP1, Office 2000 Premium and Small Business SP1
Jonathan West - 27 Sep 2005 13:03 GMT
> Hi,
>
[quoted text clipped - 6 lines]
>
> Any suggestions?

These articles will show you what you need to do.

Running a macro automatically when a document is created, opened or closed
http://www.word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm

Writing application event procedures
http://www.word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm

How to create global event procedures similar to AutoOpen, AutoNew and
AutoClose, without using Normal.dot
http://www.word.mvps.org/FAQs/MacrosVBA/PseudoAutoMacros.htm

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org 

 
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.