Print Current Page

D

David

I am using Word 97 on my local machine in a network
environment (with a network printer). I recorded a macro
to print only the current page of the document. The macro
code looks like this:

Application.PrintOut FileName:="",
Range:=wdPrintCurrentPage, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
Collate:=True, Background:=True, PrintToFile:=False

I placed a new button on my toolbar that is assigned to
this macro. When I click on the button, i get 2 copies of
the page, not one as I expect. What's up?

TIA
David
 
D

DA

Hi David,

Discard your recorded code and use something like this
instead.

To print current page only, use:

ActiveDocument.PrintOut Range:=wdPrintCurrentPage

To print a range (Example prints page 10-11):
ActiveDocument.ActiveWindow.PrintOut _
Range:=wdPrintFromTo, _
From:="10", To:="11"

Regards,
Dennis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top