Brian.Crawford
Board Regular
- Joined
- Oct 3, 2007
- Messages
- 136
I import data from one WB into another but only need about 20-25% of the imported rows (currenlty about 1,500 growing to 5,000 to 6,000 by year-end. I currently do a
For i= CalculateTotalRows to 1 step -1
" if not ctiteria the delete entire row"
The import is quick (few seconds) but deleting rows (that don't match one specific criteria - ie one column matching a variable) is slow, the process currently doing about 4-5 deletions per second.
Is there a way to speed this process up dramatically.
The rows are sorted by my criteria so one thought was to find the row from the beginning to where my data starts and then deleting those all at once and then doing to same for those after my data (or visa-versa). At least then it's not one record at a time.
When I process the entire sheet but with no deletions it is very fast, 1500 taking about 10-15 seconds
Any thoughts
thanks all
Brian
For i= CalculateTotalRows to 1 step -1
" if not ctiteria the delete entire row"
The import is quick (few seconds) but deleting rows (that don't match one specific criteria - ie one column matching a variable) is slow, the process currently doing about 4-5 deletions per second.
Is there a way to speed this process up dramatically.
The rows are sorted by my criteria so one thought was to find the row from the beginning to where my data starts and then deleting those all at once and then doing to same for those after my data (or visa-versa). At least then it's not one record at a time.
When I process the entire sheet but with no deletions it is very fast, 1500 taking about 10-15 seconds
Any thoughts
thanks all
Brian