Boa noite!!
Tente..
Private Sub UserForm_Initialize()
Dim i As Long
For i = 1 To ListView1.ListItems.Count
Next i
Me.ListView1.ListItems.Clear
Me.ListView1.ColumnHeaders.Clear
Me.ListView1.View = lvwReport
Me.ListView1.Gridlines = True
Me.ListView1.ColumnHeaders.Add , , "N"
Me.ListView1.ColumnHeaders.Add , , "Fornecedor"
Me.ListView1.ColumnHeaders.Add , , "Banco"
Me.ListView1.ColumnHeaders.Add , , "Valor Pago"
Me.ListView1.ColumnHeaders.Add , , "Data"
Me.ListView1.ColumnHeaders.Add , , "Cliente"
Me.ListView1.ColumnHeaders.Add , , "Banco"
Me.ListView1.ColumnHeaders.Add , , "Valor Rebido"
Me.ListView1.ColumnHeaders.Add , , "Data"
Me.ListView1.ColumnHeaders.Add , , "Data Base"
Me.ListView1.ColumnHeaders.Add , , "Vr. Acumulado CP"
Me.ListView1.ColumnHeaders.Add , , "Vr. Acumulado CR"
Me.ListView1.ColumnHeaders.Add , , "Saldo"
Me.ListView1.ColumnHeaders(1).Width = 0
Me.ListView1.ColumnHeaders(2).Width = 170
Me.ListView1.ColumnHeaders(3).Width = 0
Me.ListView1.ColumnHeaders(4).Width = 70
Me.ListView1.ColumnHeaders(5).Width = 70
Me.ListView1.ColumnHeaders(6).Width = 170
Me.ListView1.ColumnHeaders(7).Width = 0
Me.ListView1.ColumnHeaders(8).Width = 70
Me.ListView1.ColumnHeaders(9).Width = 70
Me.ListView1.ColumnHeaders(10).Width = 90
Me.ListView1.ColumnHeaders(11).Width = 90
Me.ListView1.ColumnHeaders(12).Width = 90
Me.ListView1.ColumnHeaders(13).Width = 90
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 06/05/2012 6:17 pm