Val() converts numerical to string data : Val « Data Type « VBA / Excel / Access / Word






Val() converts numerical to string data

 
Sub valDemo()
    num1 = 5
    strV = "5"
    num2 = num1 + Val(strV)
End Sub

 








Related examples in the same category

1.Val() returns a numerical representation of a string
2.Use Val to convert user input to number value