I have a number of macros that automatically send data to one of a number of printers. After doing the print job the macro then re-establishes the default system printer as the printer to send data to should the PRINT icon get used. Without resetting to the default printer within the macro data will get sent to the last printer used should the PRINT icon get pressed. I can also get some screwy on screen page print sections showing up if a label printer was last used.
This is written into the macro as follows:
‘ THE FOLLOWING LINE RETURNS THE BORTHER MFC-9460 AS THE ACTIVE PRINTER.
Application.ActivePrinter = “Brother MFC-9460CDN Printer on Ne08:”
The aggravation with this system is that every time a printer gets added or removed on the system I have to go in and edit all the macros to update the printer name and/or Ne0# location.
What I’m wondering is if there is a command I can use that will re-establish the DEFAULT system printer as the ACTIVE PRINTER without specifically naming it. This would hopefully work somewhat like printing to the default system printer:
‘ THE FOLLOWING STATEMENT PRINTS 1 COPY OF THE QUOTE TO THE DEFAULT SYSTEM PRINTER
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Thanks as always for you help and guidance.
BH