It''s not quite that simple because the formula may return a string value or a date value, so you''d have to use FormulaStringValue and FormulaDateTime as well. The ideal would be if you could add a property (FormattedValue, say) to IRange, which would return the value, as displayed in Excel. Better still, if there could be an overloaded version of the Open method that reads in information necessary to be able to read formatted values, but not information just affecting appearance (font, cell width etc.)
worksheet.EnableSheetCalculations(); |