I have a combobox which I wish to use to autofilter a range. It appears to work since the autofiltering happens but it always comes up with "AutoFilter method of Range class failed". Please help me...
Private Sub ComboBox1_Change()
If ComboBox1.Value <> "ALL" Then
ActiveSheet.Range("A1:D300").AutoFilter Field:=2, Criteria1:=ComboBox1.Value
Else
ActiveSheet.ShowAllData
End If
End Sub
Thanks!
Bookmarks