pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
I am trying to autofilter filter on combo change but it is giving runtime error 1004; autofilter if range class failed.
after that i want it to show in listbox1. which i think should be okay if this filtering works.
Thanks
Pedie
after that i want it to show in listbox1. which i think should be okay if this filtering works.
Thanks
Pedie
Code:
Private Sub ComboBox3_Change()
Sheet1.Select
Range("A1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:=ComboBox3.Value
End Sub