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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making printers OBEY!

Status
Not open for further replies.

CybOrg

Programmer
Nov 30, 1998
57
0
0
SE
I'm writing a little snippet of code to print all Excel sheets in a folder - could be something like 30 sheets at a time. I've got a printer that's duplex capable - the problem is I can't figure out how to get that mother to actually print on both sides from within the code.

I've seen references to PrtDevMode, but those were... eh, rather dated... Is that still the only way to do it?

/Cy
 
Thanks for the reply. Problem is I get an 'object required' error when I try to use it like I do below:

Printer.Duplex = 2
ActiveWorkbook.PrintOut Copies:=1, Collate:=True

/Cy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top