Convert string containing numbers and decimal points to the numer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I convert a number saved as a string to a numeric datatype so I can
perform a calculation?
 
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
 
Back
Top