VBA Str Function: The Str function in VBA converts the given number into a string representation of that number.

Syntax

Parameter

Number (required) – This parameter represents the numeric value that you want to convert to string.

Return

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

Example 1

Output

500

VBA Str Function

Example 2

Output

-500

VBA Str Function

Example 3

Output

VBA Str Function

Pin It on Pinterest

Share This