
Originally Posted by
dugong
Thanks Jindon - but (if you have a minute of time

) can you explain what each part is doing..?
As mentioned, I can't use the code - or adapt it - if I dont understand what it is actually doing.
dugong
Then you can forget about my code...
Try search the web with the keywords
vba Regular Expression
will give you the idea...
Is this more understandable ?
Sub test()
Dim r As Range, i As Long
For Each r In Range("a1", Range("a" & Rows.Count).End(xlUp))
If Len(r.Value) Then
For i = 1 To Len(r.Value)
If Val(Mid$(r.Value, i)) <> 0 Then
r.Offset(,1).Value = Val(Mid$(r.Value, i))
Exit For
End If
Next
End If
Next
End Sub
Bookmarks