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() converts value to Single : CSng « Data Type Functions « VBA / Excel / Access / Word
VBA / Excel / Access / Word
Data Type Functions
CSng
CSng() converts value to Single
Sub singValue() Debug.Print CSng(25 * 5.5) End Sub
Related examples in the same category
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