AppEvents_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.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub AppEvents_SheetSelectionChangeEventHandler ( _
Sh As Object, _
Target As Range _
)
'Usage
Dim instance As New AppEvents_SheetSelectionChangeEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void AppEvents_SheetSelectionChangeEventHandler(
Object Sh,
Range Target
)
Parameters
Sh
Type: System.ObjectThe worksheet that contains the new selection.
Target
Type: Microsoft.Office.Interop.Excel.RangeThe new selected range.