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 / Mailmerge and Fax / March 2004

Tip: Looking for answers? Try searching our database.

printing records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Gerstman - 16 Mar 2004 01:21 GMT
In order to loop through all records of a Mail Merge list I use a loop like this
   With ActiveDocument.MailMerge.DataSourc
       .ActiveRecord = wdFirstRecor
       D
           If .ActiveRecord <> .RecordCount The
               .ActiveRecord = wdNextRecor
               ind = ind +
           End I
       Loop Until .ActiveRecord = .RecordCoun
   End Wit

How do I print out each record?  the property .activerecord doesn't have a .Destination property (or any other).  How can I direct each record separately to the printer
Thank you
Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS - 16 Mar 2004 02:06 GMT
If you execute the merge to a new document and then run the following macro
with that document active, each record will be printed as a separate print
job:

Dim i As Long
For i = 1 To ActiveDocument.Sections.Count
   ActiveDocument.PrintOut Range:=wdPrintFromTo, From:="s" & i, To:="s" & i
Next i

Signature

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP

> In order to loop through all records of a Mail Merge list I use a loop
> like this:
[quoted text clipped - 12 lines]
> separately to the printer?
> Thank you.
 
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.