arrays - Filtering With Multiple Inputs from InputBox -
i'm trying filter rows (keeping values inputted) multiple inputs inputbox. values inputted, want create array autofilter data.
what have far below.
i'm stuck @ splitting inputs array?
dim ticker variant ticker = inputbox("enter stock tickers separated commas") dim myarray string myarray = split(ticker, ",") range(range("a2"), range("a2").specialcells(xllastcell)).select selection.autofilter field:=6, criteria:=myarray
final code:
dim ticker variant ticker = inputbox("enter stock tickers separated commas") dim myarray variant myarray = split(ticker, ",") range(range("a2"), range("a2").specialcells(xllastcell)).select selection.autofilter field:=6, criteria1:=array(myarray), operator:=xlfiltervalues
Comments
Post a Comment