VBA CStr Function: The CStr function in VBA converts an expression into a string data type.

Syntax

Parameter

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

Return

This function returns a String value after converting the expression into a string data type.

Example 1

Output

20

Excel VBA CStr Function

Example 2

Output

0.00066006600660066

Excel VBA CStr Function

Example 3

Output

12/9/2020

Excel VBA CStr Function

Example 4

Output

TRUE

Excel VBA CStr Function

Pin It on Pinterest

Share This