1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Sub IniListview()
Dim i As Long
Sheets("BD2").AutoFilterMode = False
With ListView1
.ListItems.Clear
With .ColumnHeaders
.Clear
.Add , , "Nom et Prénoms", 150
.Add , , "Service", 190, lvwColumnCenter
.Add , , "Etage", 100, lvwColumnCenter
.Add , , "Bureau", 110, lvwColumnCenter
.Add , , "Surface individuelle (m2)", 120, lvwColumnCenter
.Add , , , 0
.Add , , , 0
End With
....
....
.ListItems(.ListItems.Count).ListSubItems.Add , , i
.ListItems(.ListItems.Count).ListSubItems.Add , , Format(CLng(Sheets("BD2").Cells(i, 5).Value * 1000), "000000")
|
Partager