9tanstaafl9
Well-known Member
- Joined
- Mar 23, 2008
- Messages
- 535
Hi. I got myself in trouble because I've been using code (given nicely to me by people here) that I don't entirely understand. It has been working fine for over a year, but now my report has grown so much that selecting the range using full rows is causing me to run out of resources. I need to select the range only through column J instead.
The current code is as follows:
As to what it actually does is to select a continuous block of cells (it selects the entire rows though I only need A to J) out of a much longer list, that I then copy and paste into the middle of a list on a different sheet.
If I was smart enough I could just resize it to only select/copy through J, but I can't figure out how. I haven't been doing VBA for a while, and i'm out of practice.
Any help would be appreciated, it doesn't have to be pretty or fast.
Jennifer
The current code is as follows:
Code:
Range(Range("j1"), Range("j" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeFormulas, 16).EntireRow.Copy
As to what it actually does is to select a continuous block of cells (it selects the entire rows though I only need A to J) out of a much longer list, that I then copy and paste into the middle of a list on a different sheet.
If I was smart enough I could just resize it to only select/copy through J, but I can't figure out how. I haven't been doing VBA for a while, and i'm out of practice.
Any help would be appreciated, it doesn't have to be pretty or fast.
Jennifer