WindowSelectionChange Event

Occurs when the selection handle is changed within a window in Project.

Syntax

Private Sub object_WindowSelectionChange(ByVal   Window   As MSProject.Window, ByVal   sel   As MSProject.Selection, ByVal   selType   as Long)

object     An object of type Application declared with events in a class module. For more information, see Using events with the Application object.

Window     The window where the selection occurs.

sel     The selection.

selType     The type of data included in the selection. Can be one of the following PjItemType constants: pjOtherItem, pjResourceItem, or pjTaskItem.

Remarks

The WindowSelectionChange event will not fire when changing the selection on the right pane of a Task Usage or Resource Usage view or when changing the selection within a node in the Network Diagram view.

Applies to | Application Object

See Also | WindowBeforeViewChange Event | WindowViewChange Event