VBA CByte Function: The CByte function in VBA converts an expression into a Byte data type.

Syntax

Parameter

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

Return

This function returns a byte integer values ranging between 0 and 255 after converting the given expression into byte data type.

Example 1

Output

20

VBA CByte Function

Example 2

Output

3

VBA CByte Function

Pin It on Pinterest

Share This