If .Count = 1 Then
ActiveSheet.AutoFilterMode = False
Exit Sub
End If
If .Count = 1 Then ActiveSheet.AutoFilterMode = False: Exit Sub
Is this what you mean?If you really want it on one line thenCode:If .Count = 1 Then ActiveSheet.AutoFilterMode = False Exit Sub End If
Code:If .Count = 1 Then ActiveSheet.AutoFilterMode = False: Exit Sub