This is only removing the text characters.. I need it to remove all the text and everything after it
Public Function ExtractNumeric(TextString As String) As String
Dim x As Long
Dim sDigit As String
ExtractNumeric = vbNullString
For x = 1 To Len(TextString)
sDigit = Mid(TextString, x, 1)
If sDigit >= "0" And sDigit <= "9" Then
ExtractNumeric = ExtractNumeric & sDigit
End If
Next x
End Function