IsError Function |
Syntax:
IsError(expr)
Group:
Description:
Returns the True if expr is an error code.
Parameters:
Parameter |
Description |
A variant expression to test for an error code value. |
Example:
Sub Main
Dim X As Variant
Debug.Print IsError(X) 'False
X = CVErr(1)
Debug.Print IsError(X) 'True
EndSub
See Also: