VBA IsError Function: The IsError function in VBA returns a Boolean value showing whether the specified Expression represents an error or not.

Syntax

Parameter

Expression (required)– This parameter represents the variant that you want to check.

Return

This function returns a Boolean value True if the given expression represents an error else it returns False.

Example 1

Output

The isError will return FALSE
VBA IsError Function

Example 2

Output

The isError will return TRUE
VBA IsError Function

Pin It on Pinterest

Share This