The only thing I got is this:It works, but you will have to work with it for different situations. Cells(Rows.Count, "A").End(xlUp).Row is to get the last cell on column A with something written (in this case, 11)...![]()
Sub Button1_Click() For i = 2 To Cells(Rows.Count, "A").End(xlUp).Row If Cells(i, 1) <> "Y" And Cells(i, 2) = "" Then Rows(i & ":" & i).EntireRow.Hidden = True Next i End Sub
Bookmarks