Share via


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)

Usage

Sub Sub1(Sh As Object, _
    Target As Range)
End Sub
Dim appEvents_SheetSelectionChangeEventHandler1 As New AppEvents_SheetSelectionChangeEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub AppEvents_SheetSelectionChangeEventHandler( _
    <InAttribute()> ByVal Sh As Object, _
    <InAttribute()> ByVal Target As Range _
)
public delegate void AppEvents_SheetSelectionChangeEventHandler(
    [In] object Sh, 
    [In] Range Target
);
public delegate Void AppEvents_SheetSelectionChangeEventHandler(
    Object^ Sh, 
    Range^ Target
);
public delegate void AppEvents_SheetSelectionChangeEventHandler(
    /*in*/System.Object Sh, 
    /*in*/Range Target
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • Sh
    The worksheet that contains the new selection.
  • Target
    The new selected range.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Excel Namespace