Hello all,
This is the VBA code that I have to loop the dropdown list and print. I am getting an error message when I click cancel during the loop. How do I disable or not show the error message?
VBA Error "Run-Time error'1004': PrintOut Method of Worksheet class failed
It asks me to debug ActiveSheet.Printout line
Sub Test()
Dim R As Range
For Each R In Sheets("PNL").Range("s9:s32")
If Not IsEmpty(R) Then
Range("B1:C1") = R
ActiveSheet.PrintOut
End If
Next
End Sub
Thank you very much
This is the VBA code that I have to loop the dropdown list and print. I am getting an error message when I click cancel during the loop. How do I disable or not show the error message?
VBA Error "Run-Time error'1004': PrintOut Method of Worksheet class failed
It asks me to debug ActiveSheet.Printout line
Sub Test()
Dim R As Range
For Each R In Sheets("PNL").Range("s9:s32")
If Not IsEmpty(R) Then
Range("B1:C1") = R
ActiveSheet.PrintOut
End If
Next
End Sub
Thank you very much