Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Sydney, New South Wales, Australia
    Posts
    102
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Print last page only (word 2000)

    I need to create a macro to print the last page of a document. This will be used to print the last page of many documents by lots of people. I can't find a way to refer to the last page. Can anyone help? Thanks.

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Print last page only (word 2000)

    Have you tried the recording the steps of jumping to the last page (Ctrl-End) and then printing the current page?
    <pre> Selection.EndKey Unit:=wdStory
    Application.PrintOut FileName:="", Range:=wdPrintCurrentPage, Item:= _
    wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
    ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
    False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
    PrintZoomPaperHeight:=0</pre>

    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Print last page only (word 2000)

    Andrew's method is the simplest, but if you don't want the display to change to the last page, you could do something more complicated. In past threads, we've discussed the problem that documents with multiple sections can require the funky p1s2 (page 1 of section 2) syntax in the print dialog. We've also had some macros that address this... but I won't rattle on unless it is needed.

  4. #4
    2 Star Lounger
    Join Date
    Apr 2002
    Location
    Sydney, New South Wales, Australia
    Posts
    102
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print last page only (word 2000)

    Thanks. After thinking about it again I did exactly that.

Posting Permissions

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