Function GetNumbers(parmValue)
Static oRE As Object
If oRE Is Nothing Then
Set oRE = CreateObject("vbscript.regexp")
oRE.Global = True
oRE.Pattern = "[A-Z]"
End If
If IsNull(parmValue) Then
GetNumbers = Null
End If
GetNumbers = oRE.Replace(parmValue, "")
End Function
Open in new window