SelectionChange Event

Occurs when a user changes the selected range.


Syntax

Private Sub object_SelectionChange(ByVal Ar As Long, ByVal  Ac As Long, ByVal  Sr As Long, ByVal  Sc As Long, ByVal Sr2 As Long, ByVal Sc2 As Long)

The syntax of the SelectionChange event has these parts:

PartDescription
objectA DGrid control.
Ar  The row index of the active cell.
Ac  The column index of the active cell.
Sr  The first row index of the selected range.
Sc  The first column index of the selected range.
Sr2  The last row index of the selected range.
Sc2  The last column index of the selected range.

Data Type

Ar Long
Ac Long
Sr Long
Sc Long
Sr2 Long
Sc2 Long