Public Function ExtractNumbers(str As String) As String
'loop through str and return the numbers
Dim temp As String
Dim i As Long
If Len(Nz(str, "")) > 0 Then
For i = 1 To Len(str)
If IsNumeric(Mid$(str, i, 1)) Then
temp = temp & Mid$(str, i, 1)
End If
Next i
End If
ExtractNumbers = temp
End Function