ListBox1.ColumnCount = 2
ListBox1.AddItem "Item 1, Column 1"
ListBox1.List(0, 1) = "Item 1, Column 2"
ListBox1.AddItem "Item 2, Column 1"
ListBox1.List(1, 1) = "Item 2, Column 2"
Set frm= Forms![Имя формы]
With frm
For I_col = 0 To !Список8.ColumnCount
For I_row = 0 To !Список8.ListCount - 1
txt = !Список8.Column(I_col, I_row)
msgbox txt
Next I_row
Next I_col
End With
Private Sub кнопка6_Click()
Dim s As String, s2 As String, f As String
Me.поле0.SetFocus
s = Me.поле0.Text
Me.поле2.SetFocus
s2 = Me.поле2.Text
f = s & ";" & s2
Me.Список4.RowSourceType = "Value List"
Me.Список4.ColumnCount = 2
Me.Список4.AddItem f
End Sub
Сейчас этот форум просматривают: AhrefsBot и гости: 43