Share via


DocEvents_Event.SelectionChange EventĀ 

Occurs when the selection changes on a worksheet.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Usage

WithEvents docEvents_Event1 As DocEvents_Event
Function docEvents_Event1_SelectionChange(Target As Range) As Void
    Handles docEvents_Event1.SelectionChange
End Function

Syntax

Event SelectionChange As DocEvents_SelectionChangeEventHandler
event DocEvents_SelectionChangeEventHandler SelectionChange;
event DocEvents_SelectionChangeEventHandler^ SelectionChange;
 void add_SelectionChange(DocEvents_SelectionChangeEventHandler handler);
 void remove_SelectionChange(DocEvents_SelectionChangeEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

DocEvents_Event Interface
Microsoft.Office.Interop.Excel Namespace

Other Resources

DocEvents_Event Members