Conver text to number in VBA

  • Thread starter Thread starter MSN
  • Start date Start date
activecell.Numberformat = "General"
activecell.value = activecell.value


or if it is a variable

Dim sStr as String
Dim vVal as Variant
Dim dblVal as Double
sStr = "1995"
vVal = cdbl(sStr)
'or
dblVal = sStr
 
Back
Top