Results 1 to 3 of 3
  1. #1
    Fitz
    Guest

    Printing Selected Pages (Word 2000)

    Trying to set up a document to print certain pages which are selected by a check box. Trying to do this in
    a locked document. Any help would be greatly appreciated.

  2. #2
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    St. George, Maine, USA
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Printing Selected Pages (Word 2000)

    Two options, each of which requires a form check box on each page. Check boxes sould be inserted when the document is complete.

    First option: Clicking on the box immediately print the page. To accomplish this, on each check box on each page right click, select properties and set 'Run macro on entry' to the following macro:

    Sub printpage()
    ActiveDocument.ActiveWindow.PrintOut _
    Range:=wdPrintCurrentPage

    End Sub


    Second option: Check boxes are set on for those pages that are to be printed. There is no macro attached to these boxes. On the last page or first, there is a special check box labeled: "Click here to print selected pages."
    Associated to this check box is is a macro that will check all the other boxes and will print those that are checked. Below is such a macro that handles 4 pages.

    Sub print2()
    If ActiveDocument.FormFields("Check1").Result = 1 Then
    ActiveDocument.ActiveWindow.PrintOut _
    Range:=wdPrintFromTo, From:="1", To:="1"
    End If

    If ActiveDocument.FormFields("Check2").Result = 1 Then
    ActiveDocument.ActiveWindow.PrintOut _
    Range:=wdPrintFromTo, From:="2", To:="2"
    End If
    If ActiveDocument.FormFields("Check3").Result = 1 Then
    ActiveDocument.ActiveWindow.PrintOut _
    Range:=wdPrintFromTo, From:="3", To:="3"
    End If
    If ActiveDocument.FormFields("Check1").Result = 1 Then
    ActiveDocument.ActiveWindow.PrintOut _
    Range:=wdPrintFromTo, From:="4", To:="4"
    End If
    End Sub

    This is a simple approach. Others may find something more fancy.

    Good luck.

    Bob_D

  3. #3
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Pune
    Posts
    310
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Printing Selected Pages (Word 2000)

    Why not just list page numbers separated by commas to print in the normal print dialog box? Just wondering.

Posting Permissions

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