There are plenty of examples in this forum about selecting and copying.
I am pretty sure that every single thread will mention that you should not use Select (with the very odd exception)
Search for that as well as "copy variable length range" or something similar.
It will open your eyes.
I am not negative here, just repeating to you what I was told when I was at the same spot you are.
Instead of this
try this
Here you select 1,048,576 x 16,384 (in 2007) = 17,179,869,184 cells
Is that really what you need to copy?
Have a look at something like this
(this is a range fom A1 to the last used cell in column A)
or
(this is a range fom A1 to the last used cell in column A and extends it to column F, the 6 is the 6th column)
instead of
you could use
etc etc
If you go through your whole code you'll find more that should be changed.
Search this forum or google every instance of your code and you'll see (the light)
Good luck
Bookmarks