Dim Mcol As LongDim Mrow As LongPrivate Sub MSFlexGrid1_Click()Mcol = MSFlexGrid1.MouseColMrow = MSFlexGrid1.MouseRowEnd SubPrivate Sub Command1_Click()MSFlexGrid1.Row = MrowMSFlexGrid1.Col = McolMSFlexGrid1.Text = "hello,word"End Sub