Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing printer via VBA 1

Status
Not open for further replies.

DrSmyth

Technical User
Joined
Jul 16, 2003
Messages
557
Location
GB
Hi, i've got an automated report in reporter, which does a couple of things and i want it to proint to a certain printer.

I've tried rep.PrintOut("\\COURTWOODSRV1\POPPETS on Ne05:") this told me that the printer name was not valid (I got the printer name by recording a macro in Excel in which i selected the printer..

Ive also tried
ActivePrinter = "\\COURTWOODSRV1\POPPETS on Ne05:"
rep.PrintOut

But this just prints to my default printer....

Does anybody know how i can do this operation??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top