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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -