Home
VBA / Excel / Access / Word
Access
Application
Data Type
Data Type Functions
Date Functions
Excel
File Path
Forms
Language Basics
Math Functions
Outlook
PowerPoint
String Functions
Windows API
Word
XML
CSng « Data Type Functions « VBA / Excel / Access / Word
VBA / Excel / Access / Word
Data Type Functions
CSng
1.
To avoid the Type Mismatch error, use the built-in CSng function to convert the string stored in the value1 variable to a Single type number
2.
CSng() converts value to Single