Return to VBA Code Examples

VBA IsError Function

IsError Description

Used to check for error values.

Simple IsError Examples

Result: False

Result: True

IsError Syntax

In the VBA Editor, you can type  “IsError(” to see the syntax for the IsError Function:

The IsError function contains an argument:

Expression: An expression that will be tested.

Examples of Excel VBA IsError Function

Result: IsError(1/2) is False
IsError(1/0) is True

Using IsError, you can check cells on Excel Sheet.

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro - A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users! vba save as

Learn More!