Sub CREER_TCD()
Dim f As Worksheet, pvt As PivotTable, pvtCache As PivotCache, sTab$, pf As PivotField
Set f = Sheets("DATA")
sTab = Selection.Parent.Name & "!" & Selection.Address(ReferenceStyle:=xlR1C1)
Set pvt = ActiveWorkbook.PivotCaches.Create(SourceType:=1, SourceData:=sTab).CreatePivotTable("", "")
Application.ScreenUpdating = False
pvt.PivotFields("ID").Orientation = xlRowField
pvt.PivotFields("ID").Position = 1
pvt.PivotFields("PRODUCT").Orientation = xlRowField
pvt.PivotFields("PRODUCT").Position = 2
pvt.PivotFields("REGION").Orientation = xlRowField
pvt.PivotFields("REGION").Position = 3
pvt.PivotFields("COUNTRY").Orientation = xlRowField
pvt.PivotFields("COUNTRY").Position = 4
pvt.PivotFields("PERSONS").Orientation = xlRowField
pvt.PivotFields("PERSONS").Position = 5
pvt.RowAxisLayout xlTabularRow
On Error Resume Next
For Each pf In pvt.PivotFields
pf.Subtotals(1) = False
Next
End Sub