Workbooks.Add
Sheets(1).Name = "TCD"
Sheets("Données").Activate
Range("A1").CurrentRegion.Select
ActiveWorkbook.Names.Add Name:="BD", RefersToR1C1:=Selection
Sheets("TCD").Activate
ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:="BD"). _
CreatePivotTable TableDestination:="TCD!R2C1", TableName:= _
"TCD", DefaultVersion:=xlPivotTableVersion10