I have some code like this:
My question is... how does "Err:" work exactly...![]()
Sub Macro If (expression) Then [Do Code] Else GoTo Err End If [Do more code] Err: [Error Handling] Exit Sub End Sub
if my "If" statement is false and I get sent to Err, will it just complete the Err code until Exit Sub?
if my "If" statement is True, does it ever go into the "Err" section? If not, does the code just stop before "Err" because the End Sub is directly after the Err section?
And Finally, Is there a way to create Err as a box? like...
Err:
[code]
Exit Err
so that I can have code after it (before the end sub) that will be done if the "If" statement is True.
If I can... if the "If" statement is False, does the code complete the "Err" section and then go BACK up to the "If" statement and run from where it left off?
Bookmarks