Hi all,
Because I need to print on other printer than default, I use VBA code to show all available printers, then select needed printer & print:
The problem is this: Dialog has three buttons: Setup…, OK, Cancel
Setup - is for setting up document properties, it is normal
OK - prints, it is normal
Cancel - also prints, Not Normal, How to really cancel (do not print, close dialog) ?
Because I need to print on other printer than default, I use VBA code to show all available printers, then select needed printer & print:
Code:
Sub Show_PrintersDialog_and_Print_Cards()
Application.Dialogs(xlDialogPrinterSetup).Show
Call Print_Cards
End Sub
Setup - is for setting up document properties, it is normal
OK - prints, it is normal
Cancel - also prints, Not Normal, How to really cancel (do not print, close dialog) ?