Hey there,
Try updating you entire coding behind the Sector Dashboard to just look like this. I believe the rest might be unneccessary.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("J6").Value <> "ALL" Then
Filter_By_Sector
Else
Cells.EntireRow.AutoFit
End If
End Sub
Sub Filter_By_Sector()
Dim r As Long 'rows to check
Dim Hiders As Range, Found As Range
Dim Cond As String
'
'The Name you want displayed is from cell K6
Cond = [J6].Value
'
Application.ScreenUpdating = False
Call Show_All 'Unhide previous names if any
For r = 19 To ActiveSheet.UsedRange.Rows.Count
Set Found = Range("C" & r, "L" & r).Find(What:=Cond, _
After:=Range("D" & r), LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Found Is Nothing Then
If Hiders Is Nothing Then
Set Hiders = Rows(r)
Else
Set Hiders = Union(Hiders, Rows(r))
End If: End If: Next r
Hiders.EntireRow.Hidden = True
Application.ScreenUpdating = True
End Sub
Bookmarks