Reply
 
Thread Tools Display Modes
  #1   Report Post  
Ben Griffiths
 
Posts: n/a
Default Automatically Starting mMacros

I'm creating a new template for word i.e. A *.dot file. Basically once its
finished it will automatically perform a mail merge. However, I cannot find
any information on whether or not I can get a macro to run automatically when
a word document is opened based on my new template.

Is there an option I can set? or a piece of code I can borrow?

  #2   Report Post  
Greg Maxey
 
Posts: n/a
Default

Ben,

See the section on AutoOpen and AutoNew macros he

http://word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm

--
Greg Maxey/Word MVP
A Peer in Peer to Peer Support

Ben Griffiths wrote:
I'm creating a new template for word i.e. A *.dot file. Basically
once its finished it will automatically perform a mail merge.
However, I cannot find any information on whether or not I can get a
macro to run automatically when a word document is opened based on my
new template.

Is there an option I can set? or a piece of code I can borrow?



  #3   Report Post  
Attila
 
Posts: n/a
Default

you can set the *.dot file into the "startup" folder.

for off2k and offXP: Microsoft Office/office10/statup

winword does run these *.dots when you open it!
hope this helps

"Greg Maxey" wrote:

Ben,

See the section on AutoOpen and AutoNew macros he

http://word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm

--
Greg Maxey/Word MVP
A Peer in Peer to Peer Support

Ben Griffiths wrote:
I'm creating a new template for word i.e. A *.dot file. Basically
once its finished it will automatically perform a mail merge.
However, I cannot find any information on whether or not I can get a
macro to run automatically when a word document is opened based on my
new template.

Is there an option I can set? or a piece of code I can borrow?




  #4   Report Post  
Jay Freedman
 
Posts: n/a
Default

Ben Griffiths wrote:
I'm creating a new template for word i.e. A *.dot file. Basically
once its finished it will automatically perform a mail merge.
However, I cannot find any information on whether or not I can get a
macro to run automatically when a word document is opened based on my
new template.

Is there an option I can set? or a piece of code I can borrow?


Hi Ben,

The trick is in the name you give to your macro and where you store it. Name
the macro Document_Open or AutoOpen and store it in your template. See
http://word.mvps.org/FAQs/MacrosVBA/DocumentEvents.htm for a description.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting Word 2003 from within an application richardb Microsoft Word Help 4 December 5th 04 12:01 AM
Microsoft word files are getting deleted automatically from the c. Mandar Microsoft Word Help 0 December 3rd 04 09:55 AM
Is it possible to make a new style that automatically creates a d. Alexa Microsoft Word Help 1 November 30th 04 04:46 PM
Don't wipe out the clipboard when starting WORD tadams61 Microsoft Word Help 2 November 29th 04 07:51 PM
How do I automatically indent text to line up with headings Ed Microsoft Word Help 3 November 24th 04 02:41 PM


All times are GMT +1. The time now is 06:56 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"