The "Bloat" that comes from recorded code is worst of all in the area of cell formatting. The best time to edit the code is immediately after you record it when what you changed in the cell is freshest in your mind. Any code that refers to parameters you didn't set are unnecessary and can deleted, frequently leaving only a single line of code in place of the 10-15 lines that got recorded.
Here I tried to guess at which settings represented "defaults" and removed all of those. Along with Pike's removal of selecting this greatly increases the efficiency of your code.
Just something to look at...I may have taken too much out, which is why the best time to edit is right after recording. You would know the only thing you did was add a TintShade so you would know all the rest was dross.
TIP: When editing border code, xlContinuous is the default linestyle, so just setting the weight will set that as well.
Bookmarks