Sub export()
Dim Tbl As Variant
Dim FileNumber&, i&
Dim chemin$, Texte$
FileNumber = FreeFile
'chemin = CreateObject("WScript.Shell").specialFolders("Desktop") & "\"
chemin = "P:\AP\5 B\5 CSV IMPORT\"
chemin = chemin & "Export_" & Sheets("EN TETE").Cells(2, 37) & Format(Date, "_YYYY_MM_DD") & ".csv"
Tbl = ListObjects("CSV").DataBodyRange
Open chemin For Output As #FileNumber
For i = LBound(Tbl, 1) To UBound(Tbl, 1)
Texte = Join(Application.Index(Tbl, i), ";")
Print #FileNumber, Texte
Next i
Close #FileNumber
End Sub