Need NewPage Section references in VB
Posted on 2006-05-09
I have the following macro from GrahamSkan that I've used to separate a multi-section mail-merged document into individual print jobs:
Dim sec As Section
Dim rng As Range
For Each sec In ActiveDocument.Sections
Set rng = sec.Range
rng.MoveEnd wdCharacter, -1
I now have a new mail-merged document comprised of 2-page letters, and each letter has TWO section breaks: one which is a "continuous" break and is within each letter, and the other which is a "next page" break and separates the letters from eachother.
How can I modify the above macro so that the section references (where the print jobs get separated) apply only to "new page" section breaks?