I am trying to speed up execution of a macro by use of an array. I have read into
a list of product codes that I want to tag if they appear in a larger dataset.
My original method of matching the small list against the large list was the following code copied down on each row of the large list then autofiltered on FALSE
Presuming that use of an array will be quicker, I would like to replace the - [Index.xlsm]Work1!R1C1:R" & Keeplr & "C1, - part of that code line with myarray(i,1),
how do I do that?
Any suggestions appreciated.
Code:
myarray(i, 1)
a list of product codes that I want to tag if they appear in a larger dataset.
My original method of matching the small list against the large list was the following code copied down on each row of the large list then autofiltered on FALSE
Code:
ActiveCell.FormulaR1C1 = _
"=ISNA(MATCH(TRIM(RC[-17]),[Index.xlsm]Work1!R1C1:R" & Keeplr & "C1,0))"
Presuming that use of an array will be quicker, I would like to replace the - [Index.xlsm]Work1!R1C1:R" & Keeplr & "C1, - part of that code line with myarray(i,1),
how do I do that?
Any suggestions appreciated.