If they are hidden using hide rather than filters, then a macro like this
will shade the hidden rows:
Sub NewSub()
Application.ScreenUpdating = False
Cells.Interior.ColorIndex = 3
Cells.SpecialCells(xlCellTypeVisible).Interior.ColorIndex = xlNone
End Sub
That is the effect I want. How can I make it so that when I hide the cells
they are shaded without me having to run the macro every time I hide cells?
I would like to have the act of hiding the cells trigger the shading.
Bernie, might TJ be able to highlight the rows to hide and then run a
macro to both shade and hide them? That would probably be the closest
thing to want he'd like to do.