Hi Howard.
Take a look here....
http://www.mrexcel.com/forum/excel-questions/443983-extract-only-numbers-text-string.html
I hope that helps.
Ak
Sub Remove_Alphabets_SpecialChar_Test()
Dim RegX As Object
Dim Rng As Range
Set RegX = CreateObject("vbscript.regexp")
With RegX
.Global = True
.Pattern = "[^-0-9]"
End With
For Each Rng In selection
Rng.Offset(, 1) = RegX.Replace(Rng, "")
Next Rng
End Sub
VBA Code:
select the range and keep the column next to it empty . Run the macro
Code:Sub Remove_Alphabets_SpecialChar_Test() Dim RegX As Object Dim Rng As Range Set RegX = CreateObject("vbscript.regexp") With RegX .Global = True .Pattern = "[^-0-9]" End With For Each Rng In selection Rng.Offset(, 1) = RegX.Replace(Rng, "") Next Rng End Sub