Consulting

Results 1 to 6 of 6

Thread: Solved: Print specific pages from ALL sections of a word document

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    VBAX Expert
    Joined
    Dec 2007
    Posts
    520
    Location
    Tried:

    [vba]Sub Print_pg5_pg6_all_sections_v2()

    Dim lngSectionCounter As Long

    For lngSectionCounter = 1 To ActiveDocument.Sections.Count

    ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="p5s" & lngSectionCounter, To:="p6s" & lngSectionCounter

    Next lngSectionCounter

    End Sub[/vba]
    This works, but doesn't preserve the order of the specific sections, unsure why. Any ideas (for both codes posted)?
    Last edited by xluser2007; 11-17-2008 at 08:43 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •