printing

Trouble listing printers with Excel VBA

末鹿安然 提交于 2020-08-24 10:39:44
问题 So here's the original problem: I have an Excel file with a button that runs a macro. This macro needs to print the sheet to 2 separate network printers. The workbook will be run on multiple different computers on the network. My current code looks like so: Application.ActivePrinter = "Printer-A on Ne02:" ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False Application.ActivePrinter = "Printer-B on Ne05:" ActiveWindow.SelectedSheets.PrintOut Copies:=1,