c# - First Formula Copied to All Cells in Column -
we using multidimensional array set formulas , values column range of same dimension. problem seeing no matter values in array, column copying first formula in every cell in column. ex:
var values = new object[3,1]; values[0,0] = "=$a$2"; values[1,0] = 3; values[2,0] = 4; range.formula = values;
when in spreadsheet see formula "=$a$2" in each cell in column. if set first value in multidimensional array not formula works fine. missing something?
edit happens excel 2010.
it turns out things work if set formulas using:
range.formulaarray = values;