NamedRange::Deselected Event

 

Occurs when selection moves from the NamedRange control to an area outside of the NamedRange control.

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

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

This event is raised only when the NamedRange control has focus, and then focus is transferred away from the NamedRange control.

The following code example demonstrates a handler for the Deselected event that displays the address of the cell that the selection is transferred to.

This version is for a document-level customization.

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