We help IT Professionals succeed at work.

Word 2003 - print single and two page docs double sided

triccardelli
triccardelli asked
on
I have done a big mail merge that resulted in 2000 page doc that I now need to print. Problem is, some of the letters are one page and others 2 page. I want the 2 page to print double sided but because there are one page, normal printing would screw up. Aside from me manually inserting page breaks, any fast ideas?
Comment
Watch Question

GrahamSkanRetired
Top Expert 2012

Commented:
Each letter should be separated from the next by a Next Page section break.

Try this VBA macro to covert them all  to Odd Page section breaks
Sub OddPageNext()
    Dim sec As Section
    For Each sec In ActiveDocument.Sections
        sec.PageSetup.SectionStart = wdSectionOddPage
    Next sec
End Sub

Open in new window

Author

Commented:
Okay, copied the VB code and tried to run Macro but it says my macros are in the Project are disabled.  I am still on Word 2003 and I verified that my macro security is set to Medium and I have trusted publishers set to accept VB code . . . what am I missing?

Author

Commented:
Okay, closed the doc and went back in and it allowed me to enable macros and run the code but, alas, it did not work.  No change to the doc so I did Print Preview and no change their either.  I am sure I could be missing something but any other ideas?
Retired
Top Expert 2012
Commented:
I did test it and it did work.

See if this version reports correctly.
Sub OddPageNext()
    Dim sec As Section
    Dim i as integer
    For Each sec In ActiveDocument.Sections
        sec.PageSetup.SectionStart = wdSectionOddPage
    Next sec
    MsgBox i & " sections found"
End Sub

Open in new window

Author

Commented:
Came back as 0 sections found.
GrahamSkanRetired
Top Expert 2012

Commented:
That's strange. Is it possible to modify any confidential text and post the first few pages?
GrahamSkanRetired
Top Expert 2012

Commented:
Thank you.

It seems in my experiments, that I had also set the 'Different Odd and Even pages' option on the Layout tab of the Page Setup dialogue, but I overlooked it, so try that.

If you have to do this often, it could be added into the macro.

Author

Commented:
I will try that.