Controlling Printer in XP via Macro?

C

Cheryl

I need to create a macro that will select a specific
printer (in Word) and then print to file (rather than
print out). When I use the following code, I get an error
on the "Active Printer" part:

Application.PrintOut FileName:="", ActivePrinter:="Local
Printer", _
Range:=wdPrintAllDocument, Item:=wdPrintDocumentContent, _
Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
Collate:=True, Background:=True, PrintToFile:=True, _
OutputFileName:=strPath & strNewFilename, Append:=False

Can anyone tell me how to fix this? I cannot get it to
work and would really appreciate any help I can get!!
 

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