Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 01-13-2023, 08:55 AM
Sloan149 Sloan149 is offline Mailmerge print specified pages Windows 10 Mailmerge print specified pages Office 2021
Novice
Mailmerge print specified pages
 
Join Date: Jan 2023
Posts: 3
Sloan149 is on a distinguished road
Default Mailmerge print specified pages


Regarding the macro in https://www.msofficeforums.com/mail-...documents.html, is there a way to ask what page range in this document you want to print out. I have a similar issue with a larger document that needs to be mail merge printed and stapled out, but there are times that I need to narrow down the range of pages.

Thanks!

Last edited by macropod; 02-20-2025 at 05:03 PM. Reason: Split from original thread.
  #2  
Old 01-14-2023, 04:38 AM
macropod's Avatar
macropod macropod is offline Mailmerge print specified pages Windows 10 Mailmerge print specified pages Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Preferably, you'd use the mailmerge filters to output only the records you actually want to print. Otherwise, you can send the output to a new Word document, then tell your printer which Sections of the output document to print, by inserting the section references into the print dialogue (e.g. s2-s5,s7,s9-s11).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
  #3  
Old 01-14-2023, 08:27 PM
Sloan149 Sloan149 is offline Mailmerge print specified pages Windows 10 Mailmerge print specified pages Office 2021
Novice
Mailmerge print specified pages
 
Join Date: Jan 2023
Posts: 3
Sloan149 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Preferably, you'd use the mailmerge filters to output only the records you actually want to print. Otherwise, you can send the output to a new Word document, then tell your printer which Sections of the output document to print, by inserting the section references into the print dialogue (e.g. s2-s5,s7,s9-s11).
Thanks, but I was more referring to the macro code referenced above. For that code, it doesn’t bring out the print dialogue, and it does not ask what page ranges I want to print. Is there another couple line of codes that I can insert for it to ask me what range of pages I want to print?
  #4  
Old 01-15-2023, 05:05 AM
macropod's Avatar
macropod macropod is offline Mailmerge print specified pages Windows 10 Mailmerge print specified pages Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

As I said:
Quote:
Preferably, you'd use the mailmerge filters to output only the records you actually want to print.
If you want to be able to select only specific pages, you would have to send the output to a new Word document, then choose the pages from there.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
  #5  
Old 01-15-2023, 07:03 AM
Sloan149 Sloan149 is offline Mailmerge print specified pages Windows 10 Mailmerge print specified pages Office 2021
Novice
Mailmerge print specified pages
 
Join Date: Jan 2023
Posts: 3
Sloan149 is on a distinguished road
Default

I have 20 records with 80 pages each. I need every line from the mailmerge to print, but for this week, I only need pages 1-4 (of all 20 candidates), next week I’ll need pages 45-49 (of all 20 candidates). Is there a line of code that can prompt me to indicate what pages out of the 80 I want to print, or get it to bring up the print dialogue box instead of just outputting right away when I run the macro.
  #6  
Old 01-15-2023, 12:43 PM
macropod's Avatar
macropod macropod is offline Mailmerge print specified pages Windows 10 Mailmerge print specified pages Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Sloan149 View Post
I have 20 records with 80 pages each. I need every line from the mailmerge to print, but for this week, I only need pages 1-4 (of all 20 candidates), next week I’ll need pages 45-49 (of all 20 candidates).
In that case, send the merged output to a new document and print from that only the pages required.
Quote:
Originally Posted by Sloan149 View Post
Is there a line of code that can prompt me to indicate what pages out of the 80 I want to print, or get it to bring up the print dialogue box instead of just outputting right away when I run the macro.
No, since even a VBA-driven mailmerge has no data even to tell it what pages the records will be on until they are generated. In effect, the pages don't even exist until they are printed.

An alternative approach would be to delete all the unwanted pages from the mailmerge main document, then complete the merge, which will only send the retained pages for each record to the printer. Don't save the edited mailmerge main document after doing this, however.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Closed Thread



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailmerge print specified pages Mailmerge to Individual Files Creating Extra Pages cmt11 Mail Merge 2 04-21-2019 09:32 AM
Mailmerge print specified pages Printing selected pages based on a MERGEFIELD.g. If MERGEFIELD=x then print pages 1,2,4 if MERGEFIEL Richard.p Word 3 04-21-2015 01:14 AM
can word: make variables, find appropriate pages, fill out pages with variables, print only those 20GT Word VBA 1 10-15-2014 09:48 PM
Mailmerge print specified pages Word Mailmerge wont print aovc Mail Merge 1 05-06-2011 05:29 AM
mailmerge with letters of a different numbers of pages roel1972 Mail Merge 0 02-21-2011 11:45 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft