Hello fellows,
I've been going through a harsh time programming some VBAs.
I'm gonna try to be succinct.
I have a database with lots of errors which i want to delete the rows where the errors are found.
The code i'm using is simply:
That works FINE when I have a small range of errors (i'd say 65k~)
though when i use it to normalize a set of over 200k~ rows, it simply deletes ALL the rows.
A simple test would be to fill a worksheet with:
All the way to row 200k.
You might also see that if you select the entire column, press F5, and select Constans -> Errors Excel says that the selection is too big.
A simpler solution would be to delete row by row as I inspect each one of them, but it is exponentially more time consuming than using specialcells method.
Has anyone come accross this ever? Do you have any suggetions?
I've been going through a harsh time programming some VBAs.
I'm gonna try to be succinct.
I have a database with lots of errors which i want to delete the rows where the errors are found.
The code i'm using is simply:
Columns(1).SpecialCells(xlCellTypeConstants, xlErrors).EntireRow.Delete
That works FINE when I have a small range of errors (i'd say 65k~)
though when i use it to normalize a set of over 200k~ rows, it simply deletes ALL the rows.
A simple test would be to fill a worksheet with:
#N/A
0
#N/A
0
All the way to row 200k.
You might also see that if you select the entire column, press F5, and select Constans -> Errors Excel says that the selection is too big.
A simpler solution would be to delete row by row as I inspect each one of them, but it is exponentially more time consuming than using specialcells method.
Has anyone come accross this ever? Do you have any suggetions?