Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
MaxArk[_7_] MaxArk[_7_] is offline
external usenet poster
 
Posts: 1
Default Word Automation - AutoNew Macro, Custom File Saves


In an effort to automate my document, and not having to depend on the
user knowing which button to press, I am wishing my merge to go
automatically to a new document?

It was suggested to put code in an AUTONEW macro in my tempate. How do
I do this? Where would I find this autonew macro? I'm lost with VB
through Word. Excel is a bit easier.

Also, how can I have the new document save automatically with a file
name based on one of the merge fields of the new document?

Jenn




--
MaxArk
  #2   Report Post  
Posted to microsoft.public.word.newusers
Herb Tyson [MVP] Herb Tyson [MVP] is offline
external usenet poster
 
Posts: 2,936
Default Word Automation - AutoNew Macro, Custom File Saves

I suspect that you're going to need one of the .vba newsgroups.

The AutoNew macro doesn't exist until you create it. It is one of a number
of macro names you can give to macros that you want to run automatically at
specific times. From Word's VBA Help file:

AutoExec runs When you start Word or load a global template
AutoNew runs Each time you create a new document
AutoOpen runs Each time you open an existing document
AutoClose runs Each time you close a document
AutoExit runs When you exit Word or unload a global template

It's simply a matter of creating the desired automatic macro, then stuffing
it with the desired commands (and ensuring that it is created in the
appropriate template file).

But, I suspect that "simply" isn't quite going to do it. You might start
he

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


--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com


"MaxArk" wrote in message
...

In an effort to automate my document, and not having to depend on the
user knowing which button to press, I am wishing my merge to go
automatically to a new document?

It was suggested to put code in an AUTONEW macro in my tempate. How do
I do this? Where would I find this autonew macro? I'm lost with VB
through Word. Excel is a bit easier.

Also, how can I have the new document save automatically with a file
name based on one of the merge fields of the new document?

Jenn




--
MaxArk


  #3   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Word Automation - AutoNew Macro, Custom File Saves

See the "Individual Merge Letters" item on fellow MVP Graham Mayor's website
at:

http://www.gmayor.com/individual_merge_letters.htm

If you are using Word XP or later, the "Add-in to Merge Letters to Separate
Files" that I have written and that can be downloaded from that site will
allow you to create each letter as a separate file with a filename taken
from a field in the data source with a minimum of fuss.


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"MaxArk" wrote in message
...

In an effort to automate my document, and not having to depend on the
user knowing which button to press, I am wishing my merge to go
automatically to a new document?

It was suggested to put code in an AUTONEW macro in my tempate. How do
I do this? Where would I find this autonew macro? I'm lost with VB
through Word. Excel is a bit easier.

Also, how can I have the new document save automatically with a file
name based on one of the merge fields of the new document?

Jenn




--
MaxArk



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
Grabbing information from a previous entry in autonew macro Trefilov22 Microsoft Word Help 1 June 5th 07 05:26 PM
Header / Footer mail merge issue with custom built word automation solution. eJimmi Mailmerge 4 July 18th 06 02:48 PM
Autonew macro in Word to select specific record from Excel database Peter Mailmerge 4 June 14th 06 05:39 PM
AutoNew Macro in protected form Helen B Microsoft Word Help 1 December 8th 05 06:56 PM
AutoText in AutoNew macro Sue Microsoft Word Help 2 July 1st 05 09:01 PM


All times are GMT +1. The time now is 10:15 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"