ListObject::SelectionChange Event

 

Occurs when the selection changes inside the ListObject control.

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

event DocEvents_SelectionChangeEventHandler^ SelectionChange {
	void add(DocEvents_SelectionChangeEventHandler^ value);
	void remove(DocEvents_SelectionChangeEventHandler^ value);
}

This event is raised when any selected range inside the ListObject changes.

This event is not raised when focus moves from inside a ListObject control to outside of the ListObject control. It is raised when focus moves from outside a ListObject control to the ListObject control.

The following code example creates a ListObject and then creates an event handler for the SelectionChange event. To test the event handler, select a cell in the ListObject and then select a different cell in the ListObject.

This version is for a document-level customization.

No code example is currently available or this language may not be supported.

This version is for an application-level add-in.

No code example is currently available or this language may not be supported.
Return to top
Show: