Tony
Wed Mar 29 11:01:14 CST 2006
Strictly speaking an AutoExec in Normal.dot runs when Normal.dot is loaded.
When Word starts up, this happens before the default new document is created
so it depends what you are trying to do whether or not it will be suitable.
The only event which fires at start up after the new document is created is
the Application DocumentChange event.
--
Enjoy,
Tony
"Charles Kenyon" <wordfaq@nospam.addbalance.com> wrote in message
news:O46oQT0UGHA.4952@TK2MSFTNGP09.phx.gbl...
> When you start Word, you want to use an AutoExec macro. This runs when
Word
> starts, but not every time new documents are created.
> --
> 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
>
> See also the MVP FAQ:
http://word.mvps.org/FAQs/ which is awesome!
> --------- --------- --------- --------- --------- ---------
> 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.
>
>
> "hstijnen" <hstijnen@discussions.microsoft.com> wrote in message
> news:6E051516-8B9A-4E21-BABE-E96AE9AEA285@microsoft.com...
> > Hi,
> > I want to execute some code when starting Word. In a template this can
be
> > done with AutNew() macro. But an AutoNew() macro in Normal.dot doesn't
> > fire.
> > I've created a sub Document_New() in the ThisDocument module of
Normal.dot
> > and this fires when I start a new blank document via File | New. But
when
> > I
> > start Word via Start button or toolbar it doesn't work.
> > What to do in the last situation?
> >
> > Thanks for help
> > Regards,
> > Henk
>
>