I know there's a few different ways to store the default printer as a string, but is there a way I can then prompt the user from a popup with a list of printers, and set their selection as the default printer?
application.dialogs(xldialogprintersetup).show only returns true when they select a printer. I can use wscript.network to list all printers and set a default printer, but I don't think there's a way to have it return the default printer (in UNC format).
TL;DR - I want to store the current default printer, prompt the user with a list of installed printers, set their selection as default, then reset the printer to their pre-macro default when done.
Is this possible?
application.dialogs(xldialogprintersetup).show only returns true when they select a printer. I can use wscript.network to list all printers and set a default printer, but I don't think there's a way to have it return the default printer (in UNC format).
TL;DR - I want to store the current default printer, prompt the user with a list of installed printers, set their selection as default, then reset the printer to their pre-macro default when done.
Is this possible?