Sub Solution1()
Dim pt As PivotTable
Dim ws As Worksheet
Dim nomdusheet As String
Set ws = ActiveWorkbook.Worksheets.Add
nomdusheet = ws.Name
ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, _
SourceData:="'C:\Documents and Settings\a\Bureau\Fichiers excel\[NORD.xls]Liste'!$A:$CN").CreatePivotTable _
TableDestination:="'[ETUDES C.T.R.xls]" & nomdusheet & "'!R1C1", _
TableName:="PivotTable1", _
DefaultVersion:=xlPivotTableVersion10
Set pt = ActiveWorkbook.Sheets(nomdusheet).PivotTables("PivotTable1")
pt.AddFields "L_scodper", "L_sdesagc"
pt.AddDataField pt.PivotFields("L_inbrpla"), , xlSum
Set ws = Nothing
Set pt = Nothing
End Sub