VBA IsEmpty Function: The IsEmpty function in VBA returns a Boolean value showing whether the specified Expression is Empty (variant has not been declared) 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 is empty else it returns False.

Example 1

Output

The IsEmpty will return FALSE
VBA IsEmpty Function

Example 2

Output

The IsEmpty will return TRUE
VBA IsEmpty Function

Example 3

Output

The IsEmpty will return FALSE
VBA IsEmpty Function

Pin It on Pinterest

Share This