Workbook.SheetDeactivate Event (Excel)
Occurs when any sheet is deactivated.
Syntax
식 .SheetDeactivate(Sh, )
식 An expression that returns a Workbook object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Sh |
필수 |
Object |
Example
This example displays the name of each deactivated sheet.
Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
MsgBox Sh.Name
End Sub