VBA CBool Function: The CBool function in VBA calculates an expression and returns the result as a Boolean data type.

Syntax

Parameter

Expression (required) – This parameter represents the expression that that you want to convert to a Boolean.

Return

This function returns the result as a Boolean data type.

Example 1

Output

FALSE
TRUE
VBA CBool Function

Example 2

Output

FALSE

VBA CBool Function

Example 3

Output

True

VBA CBool Function

Pin It on Pinterest

Share This