Hello everyone,
I learned this code set up from the interwebs, but I'm not slick enough to modify it to return the word "Null" when there are no numbers in the target... if someone could lead me to water, I'm more than happy to learn how to drink.
Thanks,
I learned this code set up from the interwebs, but I'm not slick enough to modify it to return the word "Null" when there are no numbers in the target... if someone could lead me to water, I'm more than happy to learn how to drink.
Thanks,
Code:
Function PullNums(target As Range)Dim MyChar As String, i As Integer, MyChar2 As String
MyChar = ""
If Len(target.Value) = 0 Then GoTo GoExit
For i = 1 To Len(target.Value)
If IsNumeric(Mid(target, i, 1)) Then MyChar = MyChar & Mid(target, i, 1)
Next i
GoExit:
PullNums = MyChar
End Function