How can I get numeric from end of a string
For example if string is 24Text147 i should get 147 only or if string is text12 i should get 12 only.
Here is what I have found but it gives all the numerics in a string
Function onlyDigits(s As String) As String
Dim retval As String
Dim i As Integer
retval = ""
'
For i = 1 To Len(s)
If mId(s, i, 1) >= "0" And mId(s, i, 1) <= "9" Then
retval = retval + mId(s, i, 1)
End If
Next
'
onlyDigits = retval
End Function