Here is how I solved his problem:
Dim p As Printer
For Each p In Printers
Debug.Print p.DeviceName
Next
'You can use the DeviceName string as a key
'to look up a specific printer.
Set Application.Printer = Printers("Adobe PDF")
Dim p As Printer
For Each p In Printers
Debug.Print p.DeviceName
Next
'You can use the DeviceName string as a key
'to look up a specific printer.
Set Application.Printer = Printers("Adobe PDF")
No comments:
Post a Comment