View Single Post
  #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