Function MyVal(String1 As String) As Double Dim n As Integer, i For i = 1 To Len(String1) n = Asc(String1)
If n <= 57 And n >= 45 And a <> 47 Then MyVal = Val(String1) Else String1 = Mid(String1, 2) End If
Next End Function
Sub tt() MsgBox MyVal("s-.89f") End Sub
|