Dim ligne As Long
Dim i As Long
ligne = 2
With Sheets("Imprime").[A2:D1000].ClearContents
For li = 1 To L1.ListItems.Count
Sheets("Imprime").Cells(ligne, 1) = L1.ListItems(li)
Sheets("Imprime").Cells(ligne, 2) = L1.ListItems(li).ListSubItems(1)
Sheets("Imprime").Cells(ligne, 3) = L1.ListItems(li).ListSubItems(2)
Sheets("Imprime").Cells(ligne, 4) = L1.ListItems(li).ListSubItems(3)
Sheets("Imprime").Cells(ligne, 5) = L1.ListItems(li).ListSubItems(4)
Sheets("Imprime").Cells(ligne, 6) = L1.ListItems(li).ListSubItems(5)
Sheets("Imprime").Cells(ligne, 7) = L1.ListItems(li).ListSubItems(6)
Next li
End With
Sheets("Imprime").Select
Dim MyValue As Byte
MyValue = MsgBox("Voulez-vous imprimer ?", vbYesNo + vbDefaultButton1)
If MyValue = vbNo Then Exit Sub
With ActiveSheet
With .PageSetup
.PrintArea = "$A$1:$G$" & Cells.Find("*", , xlValues, , 1, 2, 0).Row
.PaperSize = xlPaperA4
.Orientation = xlLandscape
.FitToPagesWide = 1
.FitToPagesTall = 1
.BlackAndWhite = True
.PrintHeadings = False
End With
.PrintOut 1
End With
imprime.cache