When I record a macro for changing the printer, then look at the code this is what I get.
Application.ActivePrinter = "SRVNT01PRT_SCLR on Ne01:" ActiveWindow.SelectedSheets.PrintOut Copies:=2, ActivePrinter:= _ "SRVNT01PRT_SCLR on Ne01:", Collate:=True Application.ActivePrinter = "SRVNT01PRT_ADM5SI on Ne00:" ActiveWindow.SelectedSheets.PrintOut Copies:=2, ActivePrinter:= _ "SRVNT01PRT_ADM5SI on Ne00:", Collate:=True
the prt_adm5si was the default printer, then I change to prt_sclr then back to prt_adm5si. My issue is what is highlited in red above. This number changes depending on which printer was installed first. Is this number part of excel or windows. I have several people that use a shared add-in and I would like to be able to change their printer with code. My problem is no one has their printers installed in the same order, so what is Ne01 for me may be Ne02 for someone else. Any ideas on how to get around this (other than uninstalling each persons printers and reinstalling in a specific order)?