Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.49 KB

Excel.Application.AfterCalculate.md

File metadata and controls

37 lines (21 loc) · 1.49 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.AfterCalculate event (Excel)
vbaxl10.chm504103
vbaxl10.chm504103
Excel.Application.AfterCalculate
ed76a36f-1b52-4464-da44-e64c81fb8d38
04/04/2019
medium

Application.AfterCalculate event (Excel)

The AfterCalculate event occurs when all pending refresh activity (both synchronous and asynchronous) and all of the resultant calculation activities have been completed.

Syntax

expression.AfterCalculate

expression A variable that represents an Application object.

Remarks

This event occurs whenever calculation is completed and there are no outstanding queries. It's mandatory for both conditions to be met before the event occurs. The event can be raised even when there is no sheet data in the workbook, such as whenever calculation finishes for the entire workbook and there are no queries running.

Add-in developers use the AfterCalculate event to know when all the data in the workbook has been fully updated by any queries and/or calculations that may have been in progress.

This event occurs after all Worksheet.Calculate, Chart.Calculate, QueryTable.AfterRefresh, and SheetChange events. It's the last event to occur after all refresh processing and all calc processing have completed, and it occurs after CalculationState is set to xlDone.

[!includeSupport and feedback]