Not sure exactly what you need. Here is a function to take in a string and output/return
only characters 0 thru 9 or . (decimal)
It returns all digits and decimal points
Code:
Function fKeepNumbers(strIN As String) As String
Dim i As Integer
Dim strOut As String
10 For i = 1 To Len(strIN) Step 1
20 If Mid(strIN, i, 1) Like "[0-9.]" Then
30 strOut = strOut & Mid(strIN, i, 1)
40 End If
50 Next i
60 fKeepNumbers = strOut
End Function
test routine
Code:
Sub testKeepNumbers()
Dim x As String
10 x = "More than 11.9 minutes over "
20 Debug.Print fKeepNumbers(x)
30 MsgBox fKeepNumbers(x), vbOKOnly
End Sub
good luck.