Calculate Method of Worksheet Object VBA

Calculate Worksheet Method in VBA is used to calculate all open workbooks or a specific worksheet in a workbook or a specified range in a worksheet.



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

Why we use Calculate Worksheet Method in VBA?

If a workbook or a worksheet or a specific range has formulas we need to refresh each time when the values are changing. In that time we can use Calculate Worksheet Method in VBA.

VBA Calculate Worksheet Method- Syntax

Here is the example syntax to Calculate Worksheet method in Excel VBA.


Where Worksheet represents the object and Calculate is the method of worksheet object.

VBA Calculate Worksheet Method: All Open Workbooks

Please see the below VBA code to Calculate all open Workbooks. In this example we are using calculate method of application object.

Sub Calculate_AllOpenWorkbooks()
End Sub

VBA Calculate Worksheet Method: In Specific Sheet

Please see the below VBA code to Calculate in specified Worksheet named “Sheet1”.

Sub Calculate_Sheet()
End Sub

VBA Calculate Worksheet Method: In Specified Range

Please see the below VBA code to Calculate in specified range (“A1:E10”) in a specified worksheet named “Sheet1”.

Sub Calculate_Range()
End Sub

VBA Calculate Worksheet Method: Instructions

Please follow the below step by step instructions to execute the above mentioned VBA macros or codes:

  1. Open an Excel Worksheet
  2. Press Alt+F11 to Open VBA Editor
  3. Insert a Module from Insert Menu
  4. Copy the above code for activating worksheet and Paste in the code window(VBA Editor)
  5. Save the file as macro enabled Worksheet
  6. Press ‘F5’ to run it or Keep Pressing ‘F8’ to debug the code line by line and observe the calculations in the Worksheet.

One Comment

  1. doug wesson November 18, 2016 at 3:43 AM - Reply

    Is there a way to call VBA Code when a cell value gets changed, when one calculates the worksheet

Leave A Comment

Related pages

syntax bold fontselect a range vbacreating dashboards in excel 2007excel macro delete empty rowsexcel unprotect sheet forgot passwordexcel vba saveas fileformatsql frequently asked interview questions and answerstelecom interview questions and answers pdfms access msgboxdcl in dbmsprogramming vbaexcel vba interfaceexcel 2007 color indexhow to unlock an excel spreadsheet for editingbox plot excel 2010 templatedelete cells vbaexcel vba programingmsgbox yes nodouble vbadeveloper tab in excel 2010project charter template wordhow to hide columns in excel shortcutexcel insert hyperlinkexcel insert rowms excel find duplicatesexcel vba alertshortcut keys of excel 2007excel 3d chartexcel vba write to text fileexcel combine worksheets into one worksheetadvanced vlookup tutorialvba combobox indexexcel 3d surface chartfso.deletefolderdelete empty cells in excelexcel vba list files in folderexcel vba formula arrayhyperlink examplesmatch function in excel 2007macros in excel tutorialexcel vba switch casehow to filter duplicates in excel 2007interview questions on c programming with answers pdfwhat is sumifcreating dashboards in excelvba screen updateunlock protected excel spreadsheethow to enable developer tab in excelmacros in sas tutorialbasic vlookupbuilding project management spreadsheetexcel vba combo boxaccess vba listboxremove duplicates in excelvba for excel examplesado net database connection examplevba cell formathow to delete macros in excelhow to combine cells in excel 2007useful vbaexcel 2007 iferrorhow to use vlookup excel 2013vba pivot table rangehow to protect sheets in exceladd developer tab to ribbonexcel vba option buttonexcel find duplicatesif isna vlookup functionexcel vba toolsmerge cells microsoft excelhow to use the concatenate function in excel