VB中如何对mshflexgrid表格数据进行修改?

2024-12-25 22:10:32
推荐回答(1个)
回答1:

Dim Mcol As Long
Dim Mrow As Long
Private Sub MSFlexGrid1_Click()
Mcol = MSFlexGrid1.MouseCol
Mrow = MSFlexGrid1.MouseRow
End Sub
Private Sub Command1_Click()
MSFlexGrid1.Row = Mrow
MSFlexGrid1.Col = Mcol
MSFlexGrid1.Text = "hello,word"
End Sub