A coupe of things, you're woring from recorded macros which have recorded your human actions. So "Selecting" gets recorded, and since you "selected" it records you copying the "selection", and sheets get activated so you can manually paste. Note that VBA has no need to select and activate things for things like copying and pasting. You can copy and paste directly by merging those commands at the selections to get a single instruction that simply "does it" without ever changing the onscreen view, VBA doesn't care what's onscreen for things like this.
So, your first macro:
Notice, no selections?
Another tip, if you first test for and store the position of the "last row of data", then your copy commands can be formatted to use that stored information. I use a LR variable to store the last row of data by looking UP column A. LR stores that number, then I use it in the the copy command. Also notice we don't even need to "unhide" a hidden sheet to copy to it?
Bookmarks