CenturyBreak
New Member
- Joined
- May 30, 2007
- Messages
- 42
Hi all... again!
I'm looking for some efficient vba code that will delete rows based on the following criteria: all cells in said row in columns K through OA are zero (numerical value, not the string "zero").
I know I can loop through something like if-and-if-and for each row, but given that I'm trying to whittle down ~ 14,000 rows, that approach might be verrrrryyyyy sloooowwwww.
Another factor is that for this month it will be from K to OA, while in following months the range will be wider. I've already built an index variable for the number of columns in the range to take that into account in future.
Thanks in advance!
I'm looking for some efficient vba code that will delete rows based on the following criteria: all cells in said row in columns K through OA are zero (numerical value, not the string "zero").
I know I can loop through something like if-and-if-and for each row, but given that I'm trying to whittle down ~ 14,000 rows, that approach might be verrrrryyyyy sloooowwwww.
Another factor is that for this month it will be from K to OA, while in following months the range will be wider. I've already built an index variable for the number of columns in the range to take that into account in future.
Thanks in advance!
Last edited: