Calculation Property of Application Object VBA

Calculation Application Property in VBA represents the calculation mode and returns XlCalculation value. Please find more details about XlCalculation Enumeration values at the end of the chapter. Please find more information about Calculation property in the following chapter.

PREMIUM TEMPLATES LIMITED TIME OFFER

ON SALE80% OFF

50+ Project Management Templates Pack
Excel PowerPoint Word

Advanced Project Plan & Portfolio Template
Excel Template

Business Presentations Templates Pack
PowerPoint Slides

20+ Excel Project Management Pack
Excel Templates

20+ PowerPoint Project Management Pack
PowerPoint Templates

10+ MS Word Project Management Pack
Word Templates


VBA Calculation Application Property – Syntax

Here syntax for Calculation Property of application object in VBA.

Application. Calculation

Where Calculation as XlCalculation. Please find more details about XlCalculation Enumeration values in the end of the chapter.
In the above syntax Application represents object and Calculation is the Property of Application object.

VBA Calculation Application Property: Example 1

Please find the below example for Calculation Property of application object in excel VBA. When XlCalculation value is xlCalculationAutomatic, It Controls the Excel recalculation.

 
Sub Window_xlCalculationAutomatic()
Application.Calculation = xlCalculationAutomatic
End Sub

VBA Calculation Application Property: Example 2

Please find the below example for Calculation Property of application object in excel VBA. When XlCalculation value is xlCalculationManual, the user requests for the calculation.

Sub Window_xlCalculationManual()
Application.Calculation = xlCalculationManual
End Sub

VBA Calculation Application Property: Example 3

Please find the below example for Calculation Property of application object in excel VBA. When XlCalculation value is xlCalculationSemiautomatic, It Controls the Excel recalculation but ignores the changes in tables.

Sub Window_xlCalculationSemiautomatic()
Application.Calculation = xlCalculationSemiautomatic
End Sub

VBA Calculation Application Property – Instructions

Please follow the below steps to execute the VBA code to save the excel file.
Step 1: Open any existing Excel Application.
Step 2: Press Alt+F11 – This will open the VBA Editor Window.
Step 3: Insert a code module from then insert menu.
Step 4: Copy the above code and paste in the code module which have inserted in the above step.
Step 5: Now press F5 to execute the code.
Step 6: Run the above examples in debug (F8) mode for better understand.

VBA XlCalculation Enumaration Values

Please find the below VBA XlCalculation Enumaration Values, Name and their description.

Excel Name Value Description
xlCalculationAutomatic -4105 Controls Excel recalculation
xlCalculationManual -4135 User requests for the calculation
xlCalculationSemiautomatic 2 Controls the Excel recalculation but ignores the changes in tables
LIMITED TIME OFFER

Leave A Comment


Related pages


use excel to find duplicatesfor each sheet in workbookpivot table help excel 2010excel macro save workbooksimple project plan template excelactive x checkadvanced vba programmingexcel connect to oracle databasems access insert into vbashow developer tab excel 2010vba delete duplicatesbasic vba in excelhide worksheets in excelproforma of minutes of meetingcombobox vba excelhow to expand rows in excelexcel if statement stringvba create comboboxhlookup formula in excelexcel basics for beginnersexcel advanced filter macrodaily status report template excelexcel vba getopenfilenamesimple excel macro exampleadding checkbox in excelhow to unlock formulas in excelhow to sort rows in excelis empty vbahow to unlock excel spreadsheetmicrosoft excel lookup functionsave excel file vbapl sql for dummiesmerge text files in excelhow to build a dashboard in excelvba enumerationvba and conditionhow to edit the protected excel sheetmacros in excel sheethow do i check for duplicates in excelsimple macros in excel examplesunlock excel password protected fileexcel dashboard ideasformula to calculate range in excelremove password protection excel 2010distinct rows in excelvisual basic macros tutorialvba user defined functionms excel macrosexcel vba made easychart wizard in excel 2007how to setup a macro in excelhow to run a macro in excelhow to combine multiple cells in excelhow to adjust columns in excelhide sheet excelwhat is sas sqlexcel formulas vlookupsql tutorial advanced with examplescombobox vba excel userformhow to unhide all tabs in excelexcel append stringsvba excel checkboxmacro visual basic excelexcel insert row macromost useful excel formulasexcel macro inputboxcountif function criteriavba excel chartsexcel vba formula with quotesdcl statementexcel formula from another sheetexcel userform tutorialsumif example excelexcel macro import text fileselect range in vbavba while loop examplecheckboxes in excel