Sub entetelistbox()
Dim L&, I&, CT, W$
L = Lentete.Left
For I = 1 To UBound(Arraycol, 2)
Set CT = Me.frmRecherche.Controls.add("Forms.Label.1", "labent" & I, True)
With CT
.Caption = " " & Arraycol(1, I): .BorderStyle = 1: .BackColor = &HE1EDF8: .Tag = I
.Move L, Lentete.Top, Range("tableau1").Cells(1, I).Width, 12
W = W & Round(CT.Width, 2) & ";"
End With
Set cls(I).B = CT
L = L + CT.Width
Next
ListBox1.ColumnWidths = W & "20" '!!! pourquoi bloquer ça si tu bloque ça ca sert a rien de faire le heading
End Sub