Hi there
I have a named range ("RRR") which consists of 1 column and each cell either is TRUE or FALSE. I want to delete the rows which have FALSE.
I tried the code below, however it doesn't delete all the rows with FALSE.
However a curious thing is that if I run the code several times (in Excel 2010) it will finally delete all the FALSE rows!
I'd like my code to work in 1 swoop. Any ideas please?
I have a named range ("RRR") which consists of 1 column and each cell either is TRUE or FALSE. I want to delete the rows which have FALSE.
I tried the code below, however it doesn't delete all the rows with FALSE.
However a curious thing is that if I run the code several times (in Excel 2010) it will finally delete all the FALSE rows!
I'd like my code to work in 1 swoop. Any ideas please?
Code:
Sheets(1).Range("$E$4:$E1245").Name = "RRR"
Dim Jcell As Range
For Each Jcell In Range("RRR")
If Jcell.Value = False Then Jcell.EntireRow.Delete
Next
Last edited: