

The use of this function is that it converts the data type of any given variable’s value into a Double data type. Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. VBA CDBL Function Article by Jeevan A Y Reviewed by Dheeraj Vaidya, CFA, FRM Excel VBA CDBL Function VBA CDBL is an inbuilt data type conversion function.
#Visual basic convert string to double code#
As a result, they may be used anywhere in your code in place of the actual values. These constants are specified by Visual Basic for Applications. (Not available on the Macintosh.)Ĭonverts the string from Unicode to the default code page of the system. The conversion argument settings are: ConstantĬonverts the string to uppercase characters.Ĭonverts the string to lowercase characters.Ĭonverts the first letter of every word in a string to uppercase.Ĭonverts narrow (single-byte) characters in a string to wide (double-byte) characters.Ĭonverts wide (double-byte) characters in a string to narrow (single-byte) characters.Ĭonverts Hiragana characters in a string to Katakana characters.Ĭonverts Katakana characters in a string to Hiragana characters.Ĭonverts the string to Unicode using the default code page of the system. The LocaleID, if different than the system LocaleID. The sum of values specifying the type of conversion to perform.

The StrConv function syntax has these named arguments: Part Returns a Variant ( String) converted as specified.
