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
 
Top