>ERROR "My Error" >>This form of the error command will generate an error 1098 with "My Error" as the text. At least that way you could tell if any other code has generated an error after you've "reset" the error to this state.
=AERROR( aErrorMsg ) && Save the error (if any)
ERROR "My Error" && Generate a custom error
AERROR = aErrorMsg && Restore the saved error
I want to restore any previous errors, or not use/generate my own error.