'création du fichier txt'ou csv
Chemin = Chemin & ".txt" 'ou ".csv"
Open Chemin For Output As #1
Dim x$, y$
For I = 1 To UBound(Tbl)
x = Tbl(I)
For J = Len(x) To 1 Step -1
If Mid(x, J, 1) <> ";" Then Exit For
Next J
y = Left(x, 3)
Print #1, Left(x, J) + IIf(y = "DOS", ";;;", IIf(y = "ECH", ";;", ""))
Next I
Close #1