I am getting an error: Exception from HRESULT: 0x800A03EC whenever I set the formula for the range as:
        Range range = destinationSheet.Range["A1"];
        string[,] formulaString = new string[numberOfRows, 1];
        range = range.Resize[numberOfRows, 1];
        for (int count = 1; count <= numberOfRows; count++)
        {
            string worksheet = "Sheet1";
            string cellRef = "A1"
            string formula = string.Format("={0}!{1}", sourceSheetName, cellRef);
            formulaString[count-1, 0] = formula;                
        }
        range.set_Value(Type.Missing, formulaString); 
        range.Formula = range.Value;   // getting exception here
what might be the reason for this
 
     
     
    