Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Occurs when any sheet is deleted.
Syntax
expression.SheetBeforeDelete (Sh)
expression An expression that returns a Workbook object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Sh | Required | Object | The sheet. Can be a Chart or Worksheet object. |
Example
This example displays the name of each deactivated sheet.
Private Sub Workbook_SheetBeforeDelete(ByVal Sh As Object)
MsgBox Sh.Name
End Sub
Support and feedback
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.