Doesn't matter. As long as it works now. I should have seen it myself, but I still have difficulties with understanding the VBA, though I try.Originally Posted by fumei
Btw, I went to Insert - object - create from file and clicked "link to file".
Of course, your macro is a lot better because it automatically gets me down to the bottom of the document.
Now, is there a way to print that page (the inserted one) and the page before Only, with selecting a specific printer in the process such as
[VBA]ActivePrinter = "Printer1"[/VBA] for example?
[VBA]With Selection
.EndKey Unit:=wdStory
.InsertBreak Type:=wdSectionBreakNextPage
.InsertFile FileName:="Other.doc", Range:=""
ActivePrinter = "Printer1"
'then the rest
End With [/VBA]
Something that could be incorporated within this same macro. I can't tell him to print the pages 50-51, because the document can have 30, 40, 45 or 55 pages, it isn't always the same. I don't know how to tell him to print the inserted document (in my case 1 page only) together with the page that preceded it.