Hi,
Here is my code:
I see the code executing the Delete command but I still see some of the rows still remaining in the table (e.g. if delete is called 5 times, I only see 3 rows being deleted).
The last column has the value "TRUE" or "FALSE". I am trying to delete all rows in the table where the last column value is "FALSE". I am not filtering on last column being FALSE value and deleting what is shown because I don't want to delete the first row (since I want to pivot on this value). Any advice?
-Eileen
Here is my code:
Code:
Rw = Range("A65536").End(xlUp).Row
Counter = 2
Do Until Counter > Rw
If (Cells(Counter, LastCol).Value = False) Then
Rows(Counter).Delete
End If
Counter = Counter + 1
Loop
I see the code executing the Delete command but I still see some of the rows still remaining in the table (e.g. if delete is called 5 times, I only see 3 rows being deleted).
The last column has the value "TRUE" or "FALSE". I am trying to delete all rows in the table where the last column value is "FALSE". I am not filtering on last column being FALSE value and deleting what is shown because I don't want to delete the first row (since I want to pivot on this value). Any advice?
-Eileen