Hi
I'm trying to set the active printer using VBA.
First I tried this:
However, when I ran the code, it kept reverting to the default printer. So, I tried adding this line first:
But, it still kept reverting to the default printer. Any ideas why?
Thanks
Chris
I'm trying to set the active printer using VBA.
First I tried this:
VBA Code:
Sheets(strLocation).PrintOut ActivePrinter:="YRK_Printer on yrkprnt02:", Copies:=1, Collate:=True, _
from:=1, to:=1, IgnorePrintAreas:=False
However, when I ran the code, it kept reverting to the default printer. So, I tried adding this line first:
VBA Code:
Application.ActivePrinter:="YRK_Printer on yrkprnt02:"
But, it still kept reverting to the default printer. Any ideas why?
Thanks
Chris