On the sheets you are copying from, is there data to be IGNORED below the tables to be copied? The reason I ask is because the simplest way to spot the lastrow is to jump UP to it from the bottom of column A. But if there is other data in the way, we wouldn't reach the bottom of the data you want copied. See the green coded section in the macro to see what I mean.
So, can we jump up from the bottom of column A on those sheets, or is there other stuff in the way?
I have a standard compilation macro I use for this, you will need to tweak the "strPath" variable for your needs.
Also, it imports EVERY file in the folder, so make sure the ones you don't want are taken out of the folder, at least temporarily.
How to use the macro:
1. Open up your workbook
2. Get into VB Editor (Press Alt+F11)
3. Insert a new module (Insert > Module)
4. Copy and Paste in your code (given above)
5. Get out of VBA (Press Alt+Q)
6. Save your sheet
The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.
Bookmarks