webmaster
30-06-2016 03:01:33
Modelo utilizado o artigo: http://wp.me/pes9W-18d
webmaster
30-06-2016 03:01:33
Mikel Silveira Fraga
30-06-2016 11:58:10
jp.bolsairriga
04-02-2017 13:15:50
Mikel Silveira Fraga
05-02-2017 13:05:19
Código: Selecionar todos
Dim lin As Integer
lin = ListBox1.ListCount 'Neste caso, 21 linhas preenchidas.
ListBox1.List(lin,0) = "Texto recebido na linha 22".
jp.bolsairriga
07-02-2017 22:23:56
milton
13-03-2017 18:08:07
fbzam
01-03-2018 22:19:34
Basole
02-03-2018 00:51:51
Código: Selecionar todos
With ListBox1
.List(.ListCount - 1, 0) = TextBox1.Text
.List(.ListCount - 1, 2) = comboBox1.Text
.List(.ListCount - 1, 3) = TextBox2.Text
.List(.ListCount - 1, 4) = TextBox3.Text
.List(.ListCount - 1, 5) = comboBox2.Text
.List(.ListCount - 1, 6) = TextBox4.Text
'List(.ListCount - 1, 7) .....
' ............. .. . . . . . . . . . . . . . .
End With
fbzam
02-03-2018 12:09:19
Mikel Silveira Fraga
02-03-2018 19:49:19
fbzam
04-03-2018 13:47:26
Basole
06-03-2018 03:15:58
Código: Selecionar todos
With ListBox1
.AddItem
.List(.ListCount - 1, 0) = TextBox1.Text
.List(.ListCount - 1, 2) = comboBox1.Text
.List(.ListCount - 1, 3) = TextBox2.Text
.List(.ListCount - 1, 4) = TextBox3.Text
.List(.ListCount - 1, 5) = comboBox2.Text
.List(.ListCount - 1, 6) = TextBox4.Text
'List(.ListCount - 1, 7) .....
' ............. .. . . . . . . . . . . . . . .
End With
fbzam
06-03-2018 11:58:39
Basole
06-03-2018 12:27:03
Código: Selecionar todos
Private Sub UserForm_Initialize()
Dim arrLb() As Variant
ReDim arrLb(0, 20) ' onde 20 é o nº de colunas
With ListBox1
.Rowsource = ""
.List = arrLb
.ColumnCount = 20
.ColumnWidths = "50 pt; 80 pt; 100 pt;" '..continue aqui até 20ª coluna"
.Clear
End With
End Sub