Application.SheetChange event (Excel)
Occurs when cells in any worksheet are changed by the user or by an external link.
expression.SheetChange (Sh, Target)
expression An expression that returns an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Sh | Required | Object | A Worksheet object that represents the sheet. |
Target | Required | Range | The changed range. |
This event doesn't occur on chart sheets.
This example runs when any worksheet is changed.
VB
Private Sub Workbook_SheetChange(ByVal Sh As Object, _
ByVal Source As Range)
' runs when a sheet is changed
End Sub
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.