@Etoto , merci beaucoup pour ton retour. Je vais aller voir tes modifications
J'espère aussi avoir une réponse pour mon problème de variable car je ne comprends pas. Ma variable est K est bonne mais je ne sais pas pourquoi je n'arrive pas à la mettre dans ma matrice. Ce qui est étrange, c'est que si dans mes lignes de l'userforrm1 :
"Sub WriteExiTable(aTable As Table, Doc As String, Prefixe As String, numero As String, Titre As String, Flexibilite As String, IADT As String, parNr As String)
Dim nRow As Integer
aTable.Rows.Add
nRow = aTable.Rows.Count - 1
aTable.Cell(nRow, 1).Range.Text = Prefixe & "-" & Format(numero, "000")
aTable.Cell(nRow, 2).Range.Text = Titre
aTable.Cell(nRow, 3).Range.Text = Doc & " " & parNr
aTable.Cell(nRow, 4).Range.Text = Flexibilite
aTable.Cell(nRow, 5).Range.Text = IADT
Je remplace la valeur IADT par une autre (comme Flexibilite), j'ai bien deux fois la variable Flexibilité qui apparaît dans ma matrice (colonne 4 et colonne 5)... J'ai du rater un truc quelque par, mais je ne vois pas quoi.
Wait and see
Stéphane