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
(e-mail address removed)
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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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