Hello,
I would like to allow a user to select a printer from the Printer dialog. Then, I will save their selection so I may use it in future steps to print to that printer.
Note, I do not want the user to print to that printer after it is selected. I need to save the value of selected printer.
I can use this but it prints and does not save the name of the printer:
Is there any way to just save the name of the selected printer selected in the line of code above? I am trying to set a variable = to this but it only returns true/false. i.e.
Any help greatly appreciated!
Thanks,
Dan
I would like to allow a user to select a printer from the Printer dialog. Then, I will save their selection so I may use it in future steps to print to that printer.
Note, I do not want the user to print to that printer after it is selected. I need to save the value of selected printer.
I can use this but it prints and does not save the name of the printer:
Code:
Application.Dialogs(xlDialogPrint).Show
Code:
selectedPrinter = Application.Dialogs(xlDialogPrint).Show
Any help greatly appreciated!
Thanks,
Dan
Last edited: