I'm sure this has been asked before..
How do I get my script to exit after an error? For instance:
If Err <> 0 Then MsgBox "Error!" & " " & Err
I want the script to exit immediately after displaying the MsgBox. I don't want it to carry on through the rest of the script.. is there an Exit command kinda like Exit Function or Exit Sub???
How do I get my script to exit after an error? For instance:
If Err <> 0 Then MsgBox "Error!" & " " & Err
I want the script to exit immediately after displaying the MsgBox. I don't want it to carry on through the rest of the script.. is there an Exit command kinda like Exit Function or Exit Sub???