Syntax

expression.SheetCalculate(Sh, )

expression An expression that returns a Workbook object.

Parameters

Name Required/Optional Data Type Description
Sh Required Object Can be a or object.

Example

This example sorts the range A1:A100 on worksheet one when any sheet in the workbook is calculated.

Visual Basic for Applications
Private Sub Workbook_SheetCalculate(ByVal Sh As Object) With Worksheets(1) .Range("a1:a100").Sort Key1:=.Range("a1") End With End Sub

See also: