Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2005

Tip: Looking for answers? Try searching our database.

Run a macro automatically when opening a document - how?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barry - 06 Apr 2005 12:35 GMT
I'm a novice with macros and want to be able to run a macro automatically
when opening a document to execute a bunch of ASK and REF fields to capture
setup info e.g. customer name, address etc, store them in bookmarks and then
paste the data into various parts of the doc.

Is a macro the best way to do this or is there a better way?
stephenc - 06 Apr 2005 13:13 GMT
Write a macro in your document, and call it "AutoOpen". This is a reserved
name. Whenever the doc is opened, Word will run this macro if it is present.

Hope this helps,
S

> I'm a novice with macros and want to be able to run a macro automatically
> when opening a document to execute a bunch of ASK and REF fields to capture
> setup info e.g. customer name, address etc, store them in bookmarks and then
> paste the data into various parts of the doc.
>
> Is a macro the best way to do this or is there a better way?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.