H
Hafeez Esmail
I've read (in the forums) that it is best to delete from
bottom up and I use this technique, however I'm having a
bit of trouble setting up a for loop for one of my lists.
I have a filtered list and have been looping through the
code (from top to bottom) by the following.
'Row one is the header row
intFrstRow = Range("A1").End(xlDown).Row
intLastRow = Range("A" & intFrstRow).End(xlDown).Row
'Create range
Range("A" & intFrstRow &, "A" & intLastRow).SpecialCells
(xlCellTypeVisible).Select
I tried setting the range the other way (intLastRow,
intFirstRow) but that didn't help.
The only method I can think of (one given by a helpful
MVP) is using a do loop to start at the end and count
backwards until hits a visible row.
Is there a faster method than this?
Thanks
Hafeez Esmail
bottom up and I use this technique, however I'm having a
bit of trouble setting up a for loop for one of my lists.
I have a filtered list and have been looping through the
code (from top to bottom) by the following.
'Row one is the header row
intFrstRow = Range("A1").End(xlDown).Row
intLastRow = Range("A" & intFrstRow).End(xlDown).Row
'Create range
Range("A" & intFrstRow &, "A" & intLastRow).SpecialCells
(xlCellTypeVisible).Select
I tried setting the range the other way (intLastRow,
intFirstRow) but that didn't help.
The only method I can think of (one given by a helpful
MVP) is using a do loop to start at the end and count
backwards until hits a visible row.
Is there a faster method than this?
Thanks
Hafeez Esmail