Auto open macro

J

Jim

I would like to have a macro run when I open a Word
document. In Excel you just need to name the macro
Auto_Open. What do I need to do in Word?

Any help would be appreciated.
Jim
 
C

Charles Kenyon

To run when you open a document, AutoOpen. To run when you create a new
document based on a template, AutoNew. The macro should be in the document
or in its attached template.
--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
H

Harold Kless[MSFT}

Hi Jim,
You can use "Sub AutoOpen()" in a Module or you can add code to the
ThisDocument Object in "Private Sub Document_Open()"


Harold Kless, MCSD
Support Professional
Microsoft Technical Support for Business Applications
(e-mail address removed)

--


This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 

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