Convert string containing numbers and decimal points to the numer

W

Wavequation

How do I convert a number saved as a string to a numeric datatype so I can
perform a calculation?
 
F

fredg

How do I convert a number saved as a string to a numeric datatype so I can
perform a calculation?

Dim StrValue as String
StrValue = "4567.89"

[SomeControl] =Val(StrValue)

returns 4567.89
as a Number value
 
Top