CInt() converts value to Integer : CInt « Data Type Functions « VBA / Excel / Access / Word






CInt() converts value to Integer

 
Sub intConvert()
    Debug.Print CInt(25 * 5.623)
End Sub

 

Related examples in the same category

1.To ensure that a mathematical operation returns an integer data type, use the CInt() function