Private Sub UserForm_Initialize()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Granit")
Dim lastRow As Long
lastRow = ws.Cells(ws.Rows.Count, 1).End(xlUp).Row
Dim rowIndex As Long
For rowIndex = 2 To lastRow
ListBox1.AddItem "" ' Ajoutez une ligne vide à la ListBox
' Ajoutez les valeurs des colonnes dans chaque colonne de la ListBox
ListBox1.List(ListBox1.ListCount - 1, 0) = ws.Cells(rowIndex, 1).value
ListBox1.List(ListBox1.ListCount - 1, 1) = ws.Cells(rowIndex, 2).value
ListBox1.List(ListBox1.ListCount - 1, 2) = ws.Cells(rowIndex, 3).value
ListBox1.List(ListBox1.ListCount - 1, 3) = ws.Cells(rowIndex, 4).value
ListBox1.List(ListBox1.ListCount - 1, 4) = ws.Cells(rowIndex, 5).value
ListBox1.List(ListBox1.ListCount - 1, 5) = ws.Cells(rowIndex, 6).value
Next rowIndex
ListBox1.ColumnWidths = "100;50;50;50;50;50"