RobbieC
Active Member
- Joined
- Dec 14, 2016
- Messages
- 376
- Office Version
- 2010
- Platform
- Windows
Hi there, I have a macro which I need to try and debug...
I can identify the various errors, but is it possible to resume the macro if certain errors are picked up? I can then weed out which errors are the issues and tend to them applicably. This is the code I have so far:
If you can help me out, I 'd be very happy
Thanks
I can identify the various errors, but is it possible to resume the macro if certain errors are picked up? I can then weed out which errors are the issues and tend to them applicably. This is the code I have so far:
Code:
On Error GoTo ErrorMessage
'my long macro goes here
ProcedureDone:
Exit Sub
ErrorMessage:
Select Case Err.number
Case 1004
[COLOR=#ff0000] 'ignore error and resume macro[/COLOR]
Case Else
' All outstanding errors
MsgBox Err.number & ": " & Error.Description
End Select
Resume ProcedureDone
If you can help me out, I 'd be very happy
Thanks