Just to further elaborate on the recording of code. To my point regarding it recording things not needed:
You could almost 99.9% sure remove all of the lines like this above from your code. Essentially they recorder records EVERYTHING you do (that VBA has access to), including things like scrolling, clicking a cell (not required 99% to act upon it), etc.
I wouldnt be surprised if the code you have could be re-written to be ~80% less code while doing the same thing, while possibly being more flexible (like finding the needed range instead of static ranges).
VBA can do wonderful things, but it can also cause alot of issues if used incorrectly. As a programmer I often ask myself "Should I do this?" not "Can I do this?". If there is a feature or formula that can accomplish your goals its generally a better approach. VBA shines when: 1) the process needs to be repeated a tedious number of times or 2) you cannot accomplish the same result with built in formula/features.
It looks like your macro does mostly formatting. Alot of people use macros to do that type of a thing without realizing features built in like styles, table styles, chart templates, etc. can accomplish the same thing. It may be that you are aiming to meet my point #1 about repetition with the macro and if your macro serves you well then keep using it. However as people get more comfortable with recording code and even writing code they tend to use it more and more even when they do not need to. Just be careful not to fall into the habit of trying to use code to do everything.
Bookmarks