kingnutin
Board Regular
- Joined
- Jun 15, 2005
- Messages
- 67
How can I detect which printer was chosen form the xlDialogPrinterSetup function? At any given time my users can choose to print to a fax, a printer, or a pdf. I would like it to be so that if the printer that was selected was the "Adobe PDF" printer, it would do a sendkeys function to designate the name of the file, otherwise it would just print as normal.
If Application.Dialogs(xlDialogPrinterSetup).Show Then
*** IF PRINTER SELECTED IS ADOBE PDF THEN SENDKEYS FILENAME ***
*** END IF ***
Sheets(SomeSheetName).PrintOut Copies:=1, Collate:=True
End If
If Application.Dialogs(xlDialogPrinterSetup).Show Then
*** IF PRINTER SELECTED IS ADOBE PDF THEN SENDKEYS FILENAME ***
*** END IF ***
Sheets(SomeSheetName).PrintOut Copies:=1, Collate:=True
End If