Results 1 to 20 of 79

Thread: Printing macro - impossible?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Quote Originally Posted by fumei
    Huh? Of course there is. That is EXACTLY what I posted!
    Yes you did. Now I will be able to print the last page and the page the precedes it regardless of how many pages the document has. I thought it was impossible to code something like that. Wonderful.


    [VBA]With Selection
    .EndKey Unit:=wdStory
    .InsertBreak Type:=wdSectionBreakNextPage
    .InsertFile FileName:="Other.doc", Range:=""


    End With[/VBA]

    For the future reference, in case someone comes here seeking for the same thing, here's Fumei's code. It will automatically insert another file as the last page keeping it's original heading in the process, and then it will automatically print that page and the page before, regardless of the number of pages that the original document has. All of this in one macro, which means one click.

    Big thanks to Fumei, macropod and all the rest who spent time in writing this code.
    Last edited by Zack; 04-29-2012 at 02:06 AM.

Posting Permissions

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