Hi t0m46;

Originally Posted by
t0m46
Thanks that code works really well. I dont no if a specific sheet is making it slow as the sheet i want to paste the data in is really slow even if i select a cell. the worksheet is empty unless data has been put in there. can there be a reason why this is like this?
I don't believe it makes much difference it there is data in the workbook or not. It just takes time to "Select" a cell (so don't ever "Select" in a macro, just tel that macro what cell to change). If you were inserting or deleting rows, then it would matter if there was data below the inserted/deleted row.
If you want to find out which worksheet is slowing it down try this:
Make sure the StatusBar is on. If necessary put this in your code above the loop.
and obviously turn it off after the loop if you want.
If the statusbar changes too fast to read the file names, then it's probably as fast as it can be. If it slows down on a particular file, then you have somewhere to start looking for a problem.
Bookmarks