Using Excel 2007. Just started learning VB a few months ago and stuck on this one: I have 1 workbook with 3 worksheets. 2 worksheets have large tables of data (>60 cols x >5000 rows). I am writing a VBA array (9 elements in total) to write formulas into cells on one worksheet, and part of the formula is making reference to cells on the other worksheet. For ex in worsheet called OLD_MIF I have:
Dim List as Variant
List = Array(...."IF(ISERROR(MATCH(F2,NEW_MIF!F:F,0)),0,1)", "IF(ISERROR(MATCH(G2,NEW_MIF!G:G,0)),0,2)"....)
However when VB writes these formulas into the cells (in sheet OLD_MIF) Excel changes the "NEW_MIF!F:F" reference to "NEW_MIF!S:S" and the "NEW_MIF!G:G" to "NEW_MIF!T:T".
I tried many things but keep getting the exact same result!
Any help would be greatly appreciated. Thanks )
Dim List as Variant
List = Array(...."IF(ISERROR(MATCH(F2,NEW_MIF!F:F,0)),0,1)", "IF(ISERROR(MATCH(G2,NEW_MIF!G:G,0)),0,2)"....)
However when VB writes these formulas into the cells (in sheet OLD_MIF) Excel changes the "NEW_MIF!F:F" reference to "NEW_MIF!S:S" and the "NEW_MIF!G:G" to "NEW_MIF!T:T".
I tried many things but keep getting the exact same result!
Any help would be greatly appreciated. Thanks )