Formula是指公式,如果你要判断值可以这样写
Dim s As String = "-22"Dim d As DoubleIf Double.TryParse(s, d) Then msgbox("OK")End If