Maybe AutoExec is wrong name for Word 2003?

R

Rick Charnes

I've noticed that even if I save a macro named AutoExec to my NORMAL.DOT
template, it still doesn't execute when Word starts.

Is it possible that the name AutoExec no longer works for a startup
macro in Word 2003?
 
D

Dawn Crosier

Give AutoOpen() a try.

--
Dawn Crosier
Microsoft MVP
"Education Lasts a Lifetime"

This message is posted to a newsgroup. Please post replies and
questions to the newsgroup so that others can learn as well.

message | I've noticed that even if I save a macro named AutoExec to my
NORMAL.DOT
| template, it still doesn't execute when Word starts.
|
| Is it possible that the name AutoExec no longer works for a startup
| macro in Word 2003?
 
R

Rick Charnes

dlc110161 said:
Give AutoOpen() a try.

AutoNew(), AutoOpen() and AutoClose() all work perfectly for me in their
respective tasks. AutoExec(), on the other hand, fails; it doesn't
execute when Word loads. Any ideas? Here's the relevant snippet from
my NORMAL.DOT:

Sub AutoExec()
MsgBox "Good morning, Rick!"
End Sub
Sub AutoNew()
MsgBox "You've just started a new document."
End Sub
Sub AutoOpen()
MsgBox "You've just opened an existing document."
End Sub
Sub AutoClose()
MsgBox "You've just closed a document."
End Sub
 
C

Charles Kenyon

I have several AutoExec procedures running on Word startup in Word 2003,
being loaded from different Add-Ins. This includes one in Normal.dot.
Another is in an Add-In in my Start folder that loads other Add-ins (not in
the Start folder). A third is in a COM Add-In that is part of WOPR. They
work.

It would be a good idea to keep your questions about this in a single
thread. You might also consider posting in a vba newsgroup rather than one
about document management.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top