1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| Set Plage1 = Worksheets(Active).Range("A12:A" & LastLig).SpecialCells(xlCellTypeVisible)
If Plage1.Count > 1 Then
For Each c In Plage1
If c.Row > Plage1.Row Then
Me.AffichageSelection.SubitemsItems (6), , Format("11/01/2016", "dd/mm/yy")
With Me.AffichageSelection.ListItems.Add(, , c.Value)
.SubItems(1) = c
.SubItems(2) = c.Offset(, 1)
.SubItems(3) = c.Offset(, 2)
.SubItems(4) = c.Offset(, 3)
.SubItems(5) = c.Offset(, 4)
.SubItems(8) = c.Offset(, 7)
.SubItems(9) = c.Offset(, 8)
' Me.ListView1.ListItems.Add , , Format("11/01/2016", "dd/mm/yy")
'.ListSubItems.Add , , FormatNumber("[$-409]d-mmm-yy;@")
'.SubItems(6) = NumberFormat = "[$-409]d-mmm-yy;@"
'.SubItems(7) = NumberFormat = "[$-409]d-mmm-yy;@"
.SubItems(6) = c.Offset(, 5)
.SubItems(7) = c.Offset(, 6)
End With
End If
Next c
End If |