I found a way to do so... I'm not sure it's the best one but it works... here it is:
'Pop-up a dialog to select a printer
Application.Dialogs(xlDialogPrinterSetup).Show
'Get the active printer name (the one selected in dialog)
printerName = Application.ActivePrinter
'Remove the last extra chars to leave only
'the //Server/Printer in the printerName
Y = InStr(printerName, " "
If Y = 0 Then
Y = 1
End If
printerName = Mid(printerName, 1, Y - 1)
'Send the .srq file to the printer
Shell ("cmd /C ""copy """ + <file path and name> + """ " + printerName + """"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.