running a macro "after" a document opens"

B

BRC

I have a template that has some fields that are updated when the
document opens and should leave the cursor at a point to start typing
the letter. The problem I am having is that the template also inserts
a logo at the top of the page. the auto exec macro runs before the logo
is inserted so the cursor ends up back at the top of the page rather
than in the body of the letter. this surprises me because the logo is
embedded in the template (not inserted by the autoexec macro)
I tried renaming autoexec to autoopen with same results. Any
suggestions would be appreciated.
BRC
 
J

Jean-Guy Marcil

BRC was telling us:
BRC nous racontait que :
I have a template that has some fields that are updated when the
document opens and should leave the cursor at a point to start typing
the letter. The problem I am having is that the template also inserts
a logo at the top of the page. the auto exec macro runs before the
logo is inserted so the cursor ends up back at the top of the page
rather than in the body of the letter. this surprises me because the
logo is embedded in the template (not inserted by the autoexec macro)
I tried renaming autoexec to autoopen with same results. Any
suggestions would be appreciated.
BRC

AutoExec macros are meant to be used when Word is launched, not when a
document is opened.

Now, from your description it is not entirely clear what is going on.

Do you have one or two macros (logo / fields)?

Can you post your code (or the relevant part if it is too long)?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
G

Graham Mayor

If you want the code to run when the document is created from the template
it should be called Autonew - not autoexec or autoopen?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Top