Text to number

  • Thread starter Thread starter bob
  • Start date Start date
cdbl(Textbox1.Text)

or if an integer

clng(textbox1.text)


or just set it to a variable declared to be the proper type

Dim dblVal as double, lngVal as Long

dblVal = textbox1.Text
lngVal = Textbox2.Text
 
Back
Top