Sub Macro1()
Dim nf$
nf = Application.GetOpenFilename("Fichier CSV (*.csv), *.csv")
With ActiveSheet.QueryTables.Add(Connection:="TEXT;" & nf, Destination:=Range("$A$1"))
.Name = "Resa_club"
.FieldNames = -1: .PreserveFormatting = -1
.RefreshStyle = xlInsertDeleteCells: .SaveData = -1
.AdjustColumnWidth = -1: .RefreshPeriod = 0
.TextFilePlatform = 1252: .TextFileStartRow = 1
.TextFileParseType = xlDelimited: .TextFileSemicolonDelimiter = -1
.TextFileColumnDataTypes = Array(1, 4, 4, 1, 4, 4) ' ici formatage des données : 4 = Date JMA
.Refresh BackgroundQuery:=False
End With
End Sub