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


case select vbams access visual basic commandsremoving duplicate in excelexcel auto sort datavba close userformexcel ascending orderdrop down list in excel 2007vba refresh pivot tableformula for vlookup in excelexcel vba import text fileloop vba exceltypes of variables vbaselect vba excelhow to delete empty cellsexcel vba input boxvb define arraycopy sheet to another sheet vbavba interior colorbusiness analyst tutorial pdfactivecell interior colorindexsumif formula in excelvba msgbox new lineexcel thisworkbookpivot table field name already existsisnumeric vbafrequently asked aptitude questions in interviewpivot table help excel 2010remove duplicates from excel spreadsheetproject management excel gantt chart templatevba double variablevba code examples for excel 2007for loop in vbahow to unlock a locked excel filevariables in excel vbahow to make hlookup in excelvba color namesinfosys interview process for experiencedvba application screenupdating falsevb arraysexcel vba graphmicrosoft excel vba programming for the absolute beginnerdbms interview questions and answers pdfhow to delete blank columns in excelvba case orexcel macro sampleexcel vba worksheet activatevba eventsvba rename fileaverageifs excel 2010create macro for exceljob estimate template wordin excel vlookup formula exampledownloadable schedule templateexcel option explicitvba do until loopexcel vba strmaking charts in excel 2007vba introductionmacro programming in excelidentifying duplicates in excelexcel insert row macroindex formula in excel 2007excel 2010 delete duplicatesmicrosoft excel test questions and answersexcel chart add inssql excel queryvb sample programs for beginnersexcel vba activeworkbookppt schedule templatepivot table tutorialsmicrosoft office gantt chart templaterecord macro powerpoint 2007excel pie chart title