Discussion:
How to execute AddIn Code when I create a new Document? (Word 2000)
(too old to reply)
J. Steinblock
2005-09-27 11:35:29 UTC
Permalink
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
2005-09-27 12:03:50 UTC
Permalink
Post by J. Steinblock
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?
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
--
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
Loading...