Bonjour,
Un autre exemple.
Le nom du fichier est le nom de la feuille exportée et l'enregistrement s'effectue dans le répertoire courant (myPath).
(A supprimer si on veut enregistrer sous c:\user\xxx\Documents)
J'ai ajouté le paramètre 'Local' à l'enregistrement sous (séparateur csv!!).
Cdlt.
Option Explicit
Public Sub Export_CSV()
Dim myPath As String, myFile As String
Dim wb As Workbook
Dim ws As Worksheet
Application.ScreenUpdating = False
myPath = ActiveWorkbook.Path & Application.PathSeparator
Set wb = ThisWorkbook
Set ws = wb.ActiveSheet
myFile = ws.Name & Format(Now, "ddmmyy hhmm")
ws.Cells(1, 1).CurrentRegion.Copy
Workbooks.Add (xlWBATWorksheet)
Worksheets(1).Cells(1, 1).PasteSpecial xlPasteValuesAndNumberFormats
ActiveWorkbook.SaveAs _
Filename:=myPath & myFile, _
FileFormat:=xlCSV, _
CreateBackup:=False, _
Local:=True
ActiveWorkbook.Close False
Set ws = Nothing: Set wb = Nothing
End Sub