Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 12-21-2018, 05:52 PM
macropod's Avatar
macropod macropod is offline Macro to convert Mail Merge Document to PDF Windows 7 64bit Macro to convert Mail Merge Document to PDF Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,516
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

The prompt regarding Sections is because the mailmerge main document from which the output records are generated may itself have contained Section breaks (e.g. where some pages are in portrait format, whilst others are in landscape format). Each record will consist of at least one Section - you need to tell Word how many Sections each record has, not how many records or pages per record there are.

As the comments relating to that topic say:
Quote:
As coded, it is assumed the output filename consists of the first paragraph in each record.
If you're getting 0 output, that suggests your mailmerge main document starts with an empty paragraph - and so do each of the output records - in which case you need to change the '1' in:
Set Rng = .Range.Paragraphs(1).Range
to point to the paragraph that is to be used for the filenames - or you can use the numbered file approach outlined in the topic's comments.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to convert Mail Merge Document to PDF Convert particular blocks of text within a word document to tables using macro benbob Word VBA 5 07-15-2018 03:20 AM
Macro to convert Mail Merge Document to PDF Mail Merge Macro ch1325 Word VBA 2 06-08-2015 06:18 AM
Mail Merge Macro spc94 Word VBA 2 06-04-2015 07:06 AM
Convert mail merge to PDF then email TeriJean Mail Merge 0 10-04-2011 03:52 PM
Macro to convert Mail Merge Document to PDF Word Doc Macro (mail Merge) ajolson1964 Word VBA 1 05-10-2011 10:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:46 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