Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Dixie Dixie is offline
external usenet poster
 
Posts: 22
Default Making a Word mailmerge template merge when it opens.

I have a lot of mailmerge templates which merge to data in a small tab
delimited text file on the local drive. When these documents open, I seem
to have to click a button to make them merge with the data in the file.

Is there some simple code I can add to the documents that will make them
merge automatically without the button press?

dixie


  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Dixie Dixie is offline
external usenet poster
 
Posts: 22
Default Making a Word mailmerge template merge when it opens.

By that, I mean that when I open the document, I want it to look like it
does when you click the ABC View merged data button and the fields are
filled with the merged data.

Surely there is some simple code that can be put into the document to make
the merge happen automatically?

dixie

"Dixie" wrote in message
...
I have a lot of mailmerge templates which merge to data in a small tab
delimited text file on the local drive. When these documents open, I seem
to have to click a button to make them merge with the data in the file.

Is there some simple code I can add to the documents that will make them
merge automatically without the button press?

dixie



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Making a Word mailmerge template merge when it opens.

Using the following code in an autonew macro in the template will cause the
merge to be executed to a new document

With ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.Execute
End With


--
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

"Dixie" wrote in message
...
By that, I mean that when I open the document, I want it to look like it
does when you click the ABC View merged data button and the fields are
filled with the merged data.

Surely there is some simple code that can be put into the document to make
the merge happen automatically?

dixie

"Dixie" wrote in message
...
I have a lot of mailmerge templates which merge to data in a small tab
delimited text file on the local drive. When these documents open, I seem
to have to click a button to make them merge with the data in the file.

Is there some simple code I can add to the documents that will make them
merge automatically without the button press?

dixie





  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Dixie Dixie is offline
external usenet poster
 
Posts: 22
Default Making a Word mailmerge template merge when it opens.

I'm not used to programming Word. How do I create an autonew macro and when
does it run?

dixie


"Doug Robbins - Word MVP" wrote in message
...
Using the following code in an autonew macro in the template will cause
the merge to be executed to a new document

With ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.Execute
End With


--
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

"Dixie" wrote in message
...
By that, I mean that when I open the document, I want it to look like it
does when you click the ABC View merged data button and the fields
are filled with the merged data.

Surely there is some simple code that can be put into the document to
make the merge happen automatically?

dixie

"Dixie" wrote in message
...
I have a lot of mailmerge templates which merge to data in a small tab
delimited text file on the local drive. When these documents open, I
seem to have to click a button to make them merge with the data in the
file.

Is there some simple code I can add to the documents that will make them
merge automatically without the button press?

dixie







  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Making a Word mailmerge template merge when it opens.

You call the macro Autonew and save it *IN THE DOCUMENT TEMPLATE* not
normal.dot
http://www.gmayor.com/installing_macro.htm It runs when you create a new
document.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Dixie wrote:
I'm not used to programming Word. How do I create an autonew macro
and when does it run?

dixie


"Doug Robbins - Word MVP" wrote in message
...
Using the following code in an autonew macro in the template will
cause the merge to be executed to a new document

With ActiveDocument.MailMerge
.Destination = wdSendToNewDocument
.Execute
End With


--
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

"Dixie" wrote in message
...
By that, I mean that when I open the document, I want it to look
like it does when you click the ABC View merged data button and
the fields are filled with the merged data.

Surely there is some simple code that can be put into the document
to make the merge happen automatically?

dixie

"Dixie" wrote in message
...
I have a lot of mailmerge templates which merge to data in a small
tab delimited text file on the local drive. When these documents
open, I seem to have to click a button to make them merge with the
data in the file.

Is there some simple code I can add to the documents that will
make them merge automatically without the button press?

dixie



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
Word should catalog misspelled words to study. rndthought Microsoft Word Help 39 May 21st 23 02:47 AM
Detach or change SQL data source for Word template, and other Qs SJMac Mailmerge 6 July 27th 06 10:12 AM
I am having difficulty with deleting headers and footers LHD New Users 5 July 24th 06 01:44 AM
How Come? Michael Koerner Mailmerge 9 February 10th 06 10:29 PM
CPU Usage When working with a Template I Created KM1 Microsoft Word Help 6 May 24th 05 04:38 PM


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