Try the following:
To insert the code:
1. Make a copy of the worksheet you want to format, so if it doesn't turn out correctly you aren't messing up your original data
2. Press Alt+F8 on your keyboard to bring up the macro window.
3. Clear the macro name field and then type FormatMacro and select the Create option
4. In between the Sub FormatMacro and End Sub copy and paste the above code. Anything that appears in green is a comment meant to help you understand.
5. Close out of Visual Basic
6. Press alt+F8 again and this time select the FormatMacro macro and then select Run.
Let me know if this works for you!
Bookmarks