Occurs when the selection of text, a shape, or a slide in the active document window changes, whether through the user interface or through code.
Syntax
Private Sub application_WindowSelectionChange(ByVal Sel As Selection)
application An object of type Application declared with events in a class module. For information about using events with the Application object, see Using Events with the Application Object.
Sel Represents the object selected.