Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Microsoft Excel allows you to set the formula calculation mode, that is, the way formulas are calculated. There are three possible values:
To set the formula calculation mode in Microsoft Excel:
Aspose.Cells also allows you to set the Formula Calculation Mode using FormulaSettings.CalculationMode mode property. You can assign it the CalcModeType enumeration which has one of the following values:
The following sample code first creates a workbook, then it sets the formula calculation mode to Manual and saves the workbook as output Excel file on disk.
C#
string FilePath = @"..\..\..\Sample Files\";
string FileName = FilePath + "Setting Formula Calculation Mode.xlsx";
//Create a workbook
Workbook workbook = new Workbook();
//Set the Formula Calculation Mode to Manual
workbook.Settings.FormulaSettings.CalculationMode = CalcModeType.Manual;
//Save the workbook
workbook.Save(FileName, SaveFormat.Xlsx);
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.