Bonjour,
Salut LouReeD. Tu as parfaitement raison. Il y a bien une limitation à 9 colonnes. La seule façon de remplir 10 colonnes ou plus, est d'utiliser les instructions ".List" et ".Column" avec chargement d'un tableau. Dans le cas ici, exemple de code :
Private Sub ajout_Click()
Dim i As Integer, i1 As Integer, c As Integer
Dim tb_liste(), tb_ajout(), tb_combiné(), tb_tache()
Dim tb
With Me.liste_avant_metre
tb_liste = .List
i1 = 0
For i = 0 To .ListCount - 1
If .Selected(i) Then
ReDim Preserve tb_ajout(.ColumnCount - 1, i1)
For c = 0 To .ColumnCount - 1
tb_ajout(c, i1) = tb_liste(i, c)
Next c
i1 = i1 + 1
End If
Next i
End With
With Me.List_des_taches
If .ListCount > 0 Then
tb = .Column: tb_combiné = Array(tb, tb_ajout)
Else
tb_combiné = Array(tb_ajout)
End If
i1 = 0
For Each tb In tb_combiné
For i = 0 To UBound(tb, 2)
ReDim Preserve tb_tache(.ColumnCount - 1, i1)
For c = 0 To UBound(tb, 1)
tb_tache(c, i1) = tb(c, i)
Next c
i1 = i1 + 1
Next i
Next tb
.Column = tb_tache
End With
End Sub