View Single Post
 
Old 12-21-2018, 05:52 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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