PivotTable Cleanup Programming Code

Copy this programming code below to paste into the Pivot Table Cleanup macro described during my presentation. This is a revised and expanded version of what you may have seen on in my presentations. Each line of code is annotated so that you can see what the macro is doing.

The Copy command is the 4th button on the toolbar at the top of the code window: