Hi - I'm a VBA newbie, but am making a little progress. i have a macro (thanks to the help of this forum) to rename a wkst based on a cells value. It works great. But some of the cells have invalid wkst names, producing an error.
I want it to fix invalid wkst names (remove special characters & shorten if too long, etc). I found a script to remove special characters, but don't know how to incorporate into my existing code or how to shorten the name if its too long.
Existing Code:
Code i want to incorporate to remove special characters (have not tested it)
And then how would i get it to shorten to less than 32 characters?
Millions of thanks!
Bookmarks