Macro runs when doc opens

W

Wai

How can I set the marco to run automatically when I open
a document (no matter it is a new or existing one)?

[Please give me the code step-by-step as I am new at VBA]
Thanks!!
 
D

Doug Robbins - Word MVP

Hi Wai,

A macro named Autoopen will run when a document is opened. If you want a
macro to run when a new document is created, you need a macro named Autonew
in the template from which the document is being created.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - 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