S
Sondra
I am trying to create a set of buttons for my printers; however, I am having
a problem with the naming of the printer. Here is my code:
Sub MyPrint()
'
' Printer004 Macro
' Macro created 8/22/2006 by SB
'
Dim sCurrentPrinter As String
sCurrentPrinter = ActivePrinter
ActivePrinter = "LZN0004"
Application.PrintOut FileName:=""
ActiverPrinter = sCurrentPrinter
End Sub
When I run the Macro, I get this message:
Run time error '5216'
There is a printer error
When I choose debug it always highlights this line
ActivePrinter = "LZN0004"
I have modified this line several time and just don't know what I'm doing
wrong...
Any advise, help or answers would be greatly appreciated.
a problem with the naming of the printer. Here is my code:
Sub MyPrint()
'
' Printer004 Macro
' Macro created 8/22/2006 by SB
'
Dim sCurrentPrinter As String
sCurrentPrinter = ActivePrinter
ActivePrinter = "LZN0004"
Application.PrintOut FileName:=""
ActiverPrinter = sCurrentPrinter
End Sub
When I run the Macro, I get this message:
Run time error '5216'
There is a printer error
When I choose debug it always highlights this line
ActivePrinter = "LZN0004"
I have modified this line several time and just don't know what I'm doing
wrong...
Any advise, help or answers would be greatly appreciated.