This example puts the word "Here" into the current cell, changes the active cell to the third cell in the third row and puts the word "There" into this new active cell. To run the program, press f5, and then click the grid.
Note If you are using the MSFlexGrid, substitute "MSHFlexGrid1" with "MSFlexGrid1."
Private Sub Form1_Load ()
MSHFlexGrid1.Rows =8
MSHFlexGrid1.Cols =5
End Sub
Private Sub MSHFlexGrid1_Click ()
' Put text in current cell.
MSHFlexGrid1.Text ="Here"
' Put text in third row, third column.
MSHFlexGrid1.Col =2
MSHFlexGrid1.Row =2
MSHFlexGrid1.Text ="There"
End Sub