16,554
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
For i = 0 To List1.ListCount - 1
If List1.Selected(i) = True Then
List1.ListIndex = i
MsgBox List1.Text
MsgBox Form1.DataGrid1.Columns(List1.Text)
'以下语句不行:
'Form1.DataGrid1.Columns(List1.Text).Visible = True
End If
Next i
End Sub