Hi - this macro works but it seems slow. Any suggestions for speeding it up? It's attached to a checkbox.
It also doesn't take into consideration any rows that might be hidden already, however, that shouldn't happen but probably could.![]()
Application.ScreenUpdating = False With ThisWorkbook.ActiveSheet Dim i As Long Dim lr As Long lr = Cells(Rows.Count, 1).End(xlUp).Row For i = 1 To lr If Range("D" & i).Interior.Color = RGB(217, 217, 217) Then Range("D" & i).EntireRow.Hidden = True End If Next End With Application.ScreenUpdating = True
I have the same basic code to unhide the rows.
Thank You.
Bookmarks