Open document in print preview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is probably a very simple question, but I don't know the answer! Can
someone please help me?

Where should I place a macro to perform an action as a document opens?

Specifically, I need to open the doc, every time, in print preview.

Thanks in advance for your any help you can give me.
Regards,
 
There are several ways to run a macro on opening a document. An AutoOpen
macro is probably the easiest. It can go in any module in the document or
its template (ThisDocument if you like) and must be called "AutoOpen". There
are a set of precedence rules if you have more than one but, for this, you
don't really need to worry about that - just have one macro to avoid the
issue.
 
Thanks for your help. I got it working.
Regards,

Tony Jollans said:
There are several ways to run a macro on opening a document. An AutoOpen
macro is probably the easiest. It can go in any module in the document or
its template (ThisDocument if you like) and must be called "AutoOpen". There
are a set of precedence rules if you have more than one but, for this, you
don't really need to worry about that - just have one macro to avoid the
issue.
 

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

Back
Top