Double
09-06-2007, 04:33 PM
Wasnt sure where to post this though this was the most accurate Forum.
I have this code and I get a Run Time 5216 Error - There is a printer error.
This is my code and it stops on the *ActivePrinter = "Zebra"*
Sub FaxPrint()
Dim sCurrentPrinter As String
On Cancel GoTo Cancelled:
sCurrentPrinter = ActivePrinter
ActivePrinter = "Zebra"
Application.PrintOut FileName:="label.dot"
Cancelled:
ActivePrinter = sCurrentPrinter
End Sub
Any help is greatly appreciated before I go mad
Edited 7-Sep-07 by geekgirlau. Reason: insert vba tags
I have this code and I get a Run Time 5216 Error - There is a printer error.
This is my code and it stops on the *ActivePrinter = "Zebra"*
Sub FaxPrint()
Dim sCurrentPrinter As String
On Cancel GoTo Cancelled:
sCurrentPrinter = ActivePrinter
ActivePrinter = "Zebra"
Application.PrintOut FileName:="label.dot"
Cancelled:
ActivePrinter = sCurrentPrinter
End Sub
Any help is greatly appreciated before I go mad
Edited 7-Sep-07 by geekgirlau. Reason: insert vba tags