Trying to do a simple loop through cells in column J (which contain "yes" or "no" values) and delete the rows which of the "yes" cells. However, not all "yes" cells are deleted... Thank you in advance for the help
The code is the following:
Dim myrange As Range
maturedRangeCell = Range("J5").End(xlDown).Address(RowAbsolute:=False)
Set myrange = Range("J5", maturedRangeCell)
For Each cell In myrange.Cells
If cell = "Yes" Then cell.EntireRow.Delete
Next cell
The code is the following:
Dim myrange As Range
maturedRangeCell = Range("J5").End(xlDown).Address(RowAbsolute:=False)
Set myrange = Range("J5", maturedRangeCell)
For Each cell In myrange.Cells
If cell = "Yes" Then cell.EntireRow.Delete
Next cell