CSng() converts value to Single : CSng « Data Type Functions « VBA / Excel / Access / Word






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