I am trying to run this autofilter using an array as the criteria1.
FILTER:
ActiveSheet.ListObjects("Table_Query_from_Query1").Range.AutoFilter _
Field:=40, Criteria1:=Array(strCritAry), Operator:=xlFilterValues
The string, strCritAry is the input of selected data from Column 40 used to filter the spreadsheet.
strCritAry = ""Data(1)", "Date(2)", "Data(4)""
This doesn't work. It should be without the double quotes enclosing the string.
strCritAry = "Data(1)", "Date(2)", "Data(4)"
MY QUESTION:
what can be used instead of the string, strCritAry which encapsulates the array in double quotes or is there another way to execute an autofilter where the filtered data is updated by another program.
Thanks,
Rirus
FILTER:
ActiveSheet.ListObjects("Table_Query_from_Query1").Range.AutoFilter _
Field:=40, Criteria1:=Array(strCritAry), Operator:=xlFilterValues
The string, strCritAry is the input of selected data from Column 40 used to filter the spreadsheet.
strCritAry = ""Data(1)", "Date(2)", "Data(4)""
This doesn't work. It should be without the double quotes enclosing the string.
strCritAry = "Data(1)", "Date(2)", "Data(4)"
MY QUESTION:
what can be used instead of the string, strCritAry which encapsulates the array in double quotes or is there another way to execute an autofilter where the filtered data is updated by another program.
Thanks,
Rirus