I am using VB to change the active printer but keep getting the error "Method Printer of object Application failed".
here is the code I am using:
If var1= True Then
application.ActivePrinter = "\hoGTD6:"
End If
I know the printer path is valid because in another part of the workbook, I set a variable to equal application.activeprinter and it returned "\hoGTD6:".
Any ideas? Thanks as always.
here is the code I am using:
If var1= True Then
application.ActivePrinter = "\hoGTD6:"
End If
I know the printer path is valid because in another part of the workbook, I set a variable to equal application.activeprinter and it returned "\hoGTD6:".
Any ideas? Thanks as always.