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 / October 2003

Tip: Looking for answers? Try searching our database.

printing certain records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pam - 22 Oct 2003 20:30 GMT
I have a mail merge document that I only want to print
every 5th record.  Can I select every 5th record before I
merge, or can I print every 5th record once I have
completed the merge?
Doug Robbins - Word MVP - 23 Oct 2003 10:50 GMT
Hi Pam,

The following macro should printout every 5th record of the document created
by the merge

Dim i As Integer, printrange As String
printrange = ""
For i = 1 To ActiveDocument.Sections.Count Step 5
   printrange = printrange & ", s" & i
Next
printrange = Mid(printrange, 3)
ActiveDocument.PrintOut Range:=wdPrintFromTo, From:=printrange

Alternatively, if you put 4 Next Record fields at the end of the mailmerge
main document, it would skip the necessary records.

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
> I have a mail merge document that I only want to print
> every 5th record.  Can I select every 5th record before I
> merge, or can I print every 5th record once I have
> completed the merge?
 
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.