Good Morning -
I've gotten to about 90% of where I need to be thanks to help from this forum and JBeacaire and just need a little push to the end.
Currently the script I am using is is splitting out a worksheet into seperate worksheets based on unique values in column L, Adds subtotals to the bottom of column W and Z and changes my amounts to Accounting format.
Essentially the last thing I need is to have every new sheet being created to be named the value in AE2.
My problem with this is that as you can see from the attached example (confidential information is X'd out) Column AE contains values larger than 31 characters and also some characters that are not allowed in sheet names. (/ for example)
What I'm wondering is if someone can help me add something in to delete all non-allowed characters from column AE, Trim Column AE to 31 characters and then when the sheets are being added name them the value in column AE.
I've found a workaround just doing the format manually and using a name change Macro but I was just hoping to combine it into this macro to avoid having to run two. Any help with this will be greatly appreciated.
*Original Macro Script to split sheets is from JBeaucaire*
TEST.xls
Bookmarks