excel - Auto filtering a table with a ComboBox -


i have 3 comboboxes populated numbers , trying filter table when following macro called. problem on various tests filters correctly returns blank table blank rows. comboboxes loaded correctly, there rows in table match criteria in test.

sub autofilter()

worksheets("sheet1").combobox1.value if worksheets("sheet1").combobox1.value <> ""     activesheet.listobjects("table").range.autofilter field:=1, criteria1:=number1  if worksheets("sheet1").combobox2.value <> ""     activesheet.listobjects("table").range.autofilter field:=2, criteria1:=number2 if worksheets("sheet1").combobox3.value <> ""     activesheet.listobjects("table").range.autofilter field:=3, criteria1:=number3 

what wrong?


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -