02-10-2008 11:47 AM
02-10-2008 02:07 PM
Hi MKTK123,
i´m not sure if i understand your problem. But here what i do. If i insert the formula with the property Node "FormulaArray" and connect a 2D Array of string to it (containing the formula in the first cell), then it works. The ExcelSheet contain a field with my formula and shows the correct result.
see the pictures.
Mike
02-13-2008 12:48 PM
02-13-2008 02:49 PM
MikeS81,
<property Node "FormulaArray" and connect a 2D Array of string >
FYI: The FormulaArray property is not indended for entering an array of formulas. The property needed here is the Formula property. Formula arrays are special formulas which contain multiple ranges to be calculated at the same time (ie. ={SUM(B2:D2*B3:D3)}). They are clearly indicated by the brackets which are visible in the cell shown in your formula. Enter a formula array in Excel requires pressing CNTL+SHIFT+ENTER.
MKTK123,
Another option is the property node FormulaR1C1. If the formula needs to be determined at run time by the size or contents of the data, it is much easier to use R1C1 notation rather than A1 notation. In Mike's example, substitute the formula "=SUM(R1C1:R3C1)" or "=SUM(r[-3]c[0]:r[-1]c[0])" if it is easier to use relative references.