Share via


WorkbookEvents_NewSheetEventHandler Delegate

A Delegate type used to add an event handler for the NewSheet event. The NewSheet event occurs when a new sheet is created in the workbook.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub WorkbookEvents_NewSheetEventHandler ( _
    Sh As Object _
)
'Usage
Dim instance As New WorkbookEvents_NewSheetEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void WorkbookEvents_NewSheetEventHandler(
    Object Sh
)

Parameters

  • Sh
    Type: System.Object

    The new sheet. Can be a Worksheet or Chart object.

See Also

Reference

Microsoft.Office.Interop.Excel Namespace