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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top