Private Sub DataGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
DataGrid1.Row = r
DataGrid1.Col = c
s = DataGrid1.Text
End If
End Sub
Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
r = DataGrid1.Row
c = DataGrid1.Col
End Sub