To elaborate on what Norie is saying about activating and selecting.
If a workbooks is open you don't need to activate it and select a sheet and select a range to copy the cells to another sheet in an open workbook.
So I have two open workbooks, the one with the code in it can be referred to as ThisWorkbook and will always mean the same workbook no matter which workbook is active.
The other workbook is named "One.xlsm", you will see by the code that referring to a worksheet then a sheet on the worksheet and then a range on the worksheet is all you need. I can copy data from one to the other, it doesn't matter if I have another open workbook which happens to be the active workbook. You can also assign variables for workbooks and sheets on those workbooks and ranges on those sheets, then by just referring to the range variable I am referring to the workbook, sheet in that workbook and the range all with one variable. At the end you will see that I could have just specified the workbook, sheet and range for each sheet and copied from one to the other as in Norie's example without activating or selecting anything.
Bookmarks