sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
So I've written this error coding. I was hoping someone could check it over and tell me 1. why userform18 won't show when running and 2. Is there coding I can put in userform 18 that would allow me to "screenshot" a highlighted string of code (the code that error'd) and screenshot (or save as a pdf) the activeworkbook and then reset the code- basically allowing the user to continue attempting to use the workbook.
thanks!
thanks!
Code:
Sub Hi()
On Error GoTo Helper
*CODING*
'Error helper
Exit Sub
Helper:
resp = MsgBox("We're sorry you've had this problem. Please save error codes [xxx] [" & Err.Number & "-" & Err.Description & "]. Would you " & _
"like to fix the problem?", vbyesno, "Error Checker")
If resp = vbYes Then
Userform18.Show
ElseIf resp = vbNo Then
Exit Sub
End If
End Sub