davidhall80
You could try this:
1. In H1: =NOW()
This forces the sheet to recalculate when the Filter is changed and therefore triggers the code in step 3 below.
2. In I1: =COUNTA(B:B)-SUBTOTAL(3,B:B)
3. The following WorkSheet_Calculate code
<font face=Courier New><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Worksheet_Calculate()
<SPAN style="color:#00007F">Dim</SPAN> Row <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN>
Application.EnableEvents = <SPAN style="color:#00007F">False</SPAN>
Application.ScreenUpdating = <SPAN style="color:#00007F">False</SPAN>
<SPAN style="color:#00007F">If</SPAN> Range("I1").Value <> 0 <SPAN style="color:#00007F">Then</SPAN>
Row = 2
<SPAN style="color:#00007F">Do</SPAN> <SPAN style="color:#00007F">While</SPAN> Cells(Row, 2).EntireRow.Hidden = <SPAN style="color:#00007F">True</SPAN>
Row = Row + 1
<SPAN style="color:#00007F">Loop</SPAN>
Range("G1").Value = Cells(Row, 2).Value
<SPAN style="color:#00007F">Else</SPAN>
Range("G1").Value = "N/A"
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN>
Application.EnableEvents = <SPAN style="color:#00007F">True</SPAN>
Application.ScreenUpdating = <SPAN style="color:#00007F">True</SPAN>
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
The formulas in H1 and I1 could be moved elsewhere on the sheet and possibly hidden. If the I1 formula is moved to another cell, then the reference to it in the above code would also need to be changed.