Partager via


WorkbookEvents_SheetSelectionChangeEventHandler Delegate

A Delegate type used to add an event handler for the SheetSelectionChange event. The SheetSelectionChange event occurs when the selection changes on any worksheet (doesn't occur if the selection is on a chart sheet).

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

Syntax

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

Parameters

  • Sh
    Type: System.Object

    The worksheet that contains the new selection.

See Also

Reference

Microsoft.Office.Interop.Excel Namespace