
Originally Posted by
DonkeyOte
I have to confess I thought the premise was simply to remove the rankings from the names where they exist - hence use of Evaluate to strip the numbers
(the code provided previously was simply a tidied up extension of earlier code with rank removal in place - apologies if I missed the point).
You didn't miss the point at all.
Every method I tried to simply strip the numbers ended in failure.
The only way I could get the numbers OFF of the spreadsheet, completely, was... >>>Data--Text to Columns<<<
...or, manually edit each cell.
Marcol's solution was much more desirable.
I simply added code to Marcol's macro to delete the columns containing numbers.
If there is a way to strip the numbers on an entire sheet...I would like to see it.
Incidentally, I pasted your code into a copy of my spreadsheet, and executed it.
It resulted in #NUM! errors in both Columns B, and C. (the entire column)
Could you look over your code and see if maybe the procedure needs to be corrected??
I "commented out" the whole procedure, and ran each step individually.
Here is the code that produces the above-mentioned result:
If you can get this procedure to work...I can incorporate it into Marcol's code...and I'll be in VBA heaven.
I might add, that your code was the first instance I've ever seen involving the EVALUATE function.
I did a web search to learn more about this function, and I must say...it looks VERY promising.
It seems that you can add a great deal of flexibility to your VBA code with this function.
When I get this project finished...I will set out to learn more about the EVALUATE function.
Thanks for introducing me to this previously unknown function.
Bookmarks