Mario Cerato
New Member
Hello community, reaching out for a tweak to my code below. I am trying to cleanup the view once the criteria is executed. I would like to hide rows that do not meet the criteria to not have to see a bunch of blank rows after criteria is filtered.
Code:
Sub PipelineShowAPPROVEDLoans()
If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
ActiveSheet.Range("$a$6:$ET$1000").AutoFilter Field:=34, Criteria1:="<>Pre-Approval"
ActiveSheet.Range("$A$6:$ET$1000").AutoFilter Field:=7, Criteria1:="APPR"
ActiveWindow.SmallScroll Down:=-15
ActiveSheet.Range("$A$6:$ET$1000").AutoFilter Field:=6, Criteria1:="<>"
End Sub