NamedRange::SelectionChange Event

 

Occurs when the selection inside the NamedRange control changes.

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 the selection changes to or within the NamedRange control.

The following code example demonstrates a handler for the SelectionChange event that displays the address of a cell that is selected in the NamedRange.

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.

Return to top
Show: