I'm trying to remove all trailing numbers from a string, so for example:
hello123 = hello
hello123there123 = hello123there
12345hello12345 = 12345hello
You get the gist..
Here's my inefficient, and nonworking code:
[color="#0000FF"] If IsNumeric(nonumbername.length - 1) = True Then Do Until IsNumeric(nonumbername.Length - 1) = False If IsNumeric(nonumbername.Length - 1) = True Then nonumbername = nonumbername.Remove(nonumbername.Length - 1) End If Loop MsgBox(nonumbername) End If[/color]
(Don't feel like you need to use this code if you see a simpler way of doing this!)