SelectionChanging Event

Occurs whenever the user moves the mouse pointer while selecting a range. This event does not occur when the user selects a range by using the keyboard. The user cannot cancel this event.

Private SubObject**_SelectionChanging**(ByValRangeAsRange)

*Object    * The name of the Spreadsheet object that you are trapping this event for.

Range A Range object that represents the range of cells that are being selected.

Remarks

For information about using events with VBScript, see Declaring and Using Event Procedures in VBScript .

Applies to | Spreadsheet Object