Hi Fred,
At last! - I have a suggestion for one of your questions:
ExcelReference.SetValue internally calls XlCall.Excel
(XlCall.xlSet, ...) which just sets the cell contents. To set the
formula you need xlcFormula:
Try this:
bool result = (bool)XlCall.Excel(XlCall.xlcFormula, xlRef,
formula);
I think you need to use R1C1 references in your formula.
For array formulae, you use XlCall.xlcFormulaArray.
Let us know if it works.
--Govert--