IsError Function

Checks to see if any expression evaluates to the special Error value.

IsError (Expression)

Parameters

Expression  -  (Input, expression, Required)

Specifies the expression to be evaluated.

Return Value

Returns True if the expression evaluates to Error, otherwise False.

Note

Use this function to test for error conditions rather than comparing expressions to the Error constant, as any Error value within a logical comparison (e.g. var1 <> Error) evaluates to Error, rather than True or False.

Examples

IsError (“”)

Returns False

IsError (1)

Returns False

IsError (1 / 0)

Returns True

IsError (Null)

Returns False

IsError (Error)

Returns True

TIP:

Functions are specifically for use in the Macro Editor. Refer to Microsoft's official VB and JScript documentation for scripting equivalents.

See Also

UBound Function | IsArray function | IsDate function | IsEmpty function | IsError function | IsNull function | IsNumeric function | IsSpaces function | IsURL function


© 2004-2021 looksoftware. All rights reserved.