This topic has not yet been rated - Rate this topic

Workbook.SheetChange Event

Office 2007
Occurs when cells in any worksheet are changed by the user or by an external link.

Syntax

expression.SheetChange(Sh, Target)

expression   An expression that returns a Workbook object.

Parameters

NameRequired/OptionalData TypeDescription
ShRequiredObjectA Worksheet object that represents the sheet.
TargetRequiredRangeThe changed range.

Remarks

This event doesn't occur on chart sheets.

Example

This example runs when any worksheet is changed.

Visual Basic for Applications
Private Sub Workbook_SheetChange(ByVal Sh As Object, _
        ByVal Source As Range)
    ' runs when a sheet is changed
End Sub



Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.