• Print last page only (word 2000)

    Author
    Topic
    #415763

    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.

    Viewing 1 reply thread
    Author
    Replies
    • #927926

      Have you tried the recording the steps of jumping to the last page (Ctrl-End) and then printing the current page?

        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
      • #927938

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

    • #927932

      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.

    Viewing 1 reply thread
    Reply To: Print last page only (word 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: