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

Excel files keeping print settings

Status
Not open for further replies.

Gruuuu

Programmer
Oct 7, 2008
543
US
My department updates a slew of excel files which we occasionally print in large quantities. On a select few files, if the Active Printer is not changed, individual sheets will print out with the same printer settings that they were printed with last time, even if the default settings of the printer has changed.

On a small collection of files which need to be printed in a specific order, I had a VB script running through the list, switching the active printer to an imagewriter driver (because the switch is faster than switching to another printer), and then switching back to the desired printer.

That is still slow, as it takes about 1.5-2.5 seconds to change the active printer.

So, is there a way to avoid this issue?
 
When you say "I had a VB script ..." how about showing the listing, as you may be doing something in there that is slowing things down. Do you really mean VB or do you mean VBA, by the way?

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
I did mean VBA, typo :)

it was just
Code:
Application.ActivePrinter = "Image Printer on Ne03"
Application.ActivePrinter = "FFRPR03 on Ne05"
 
Try
ExecuteExcel4Macro "PRINTER.SETUP(""Image Printer on Ne03"")"
ExecuteExcel4Macro "PRINTER.SETUP(""FFRPR03 on Ne05"")"


Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top