SelChange Event

Fired after the selected range (RowSel, ColSel) changes.

Syntax

Private Sub VSFlexGrid_SelChange()

Remarks

SelChange is fired after the Row, Col, RowSel or ColSel properties change, either as a result of user actions (mouse or keyboard) or through code. This event is also fired while the user extends the selection with the mouse.

The example below prints the coordinates of the current selection to the debug window when the selection changes:

  Private Sub fg_SelChange()

   

     Debug.Print fg.Row & ", " & fg.Col & ", " & fg.RowSel & ", " & fg.ColSel

   

  End Sub

See Also

VSFlexGrid Control