tableau croisé dynamique
Bonjour !Je cherche à créer un tableau croisé dynamique à partir d'un script lotus et malgré mes efforts je n'ai pas réussi à faire marcher mon code (voir à la fin du sujet une des versions que j'ai écrite et qui plante, ouinnn...).Si par hasard quelqu'un voit mon(mes) erreur(s) ou a déjà implémenté un tel type tableau en lotusscript j'aimerai bien qu'il me dise comment faire, parce que là je vais craquer !
Par avance merci,phi.PS: mon code lotusscript : xlApp.Rows("1:1").Select xlApp.Selection.NumberFormat = "@" xlApp.Range(xlsheet.Cells(1,1), xlsheet.Cells(rows-1,maxcols)).Select With xlsheet.PivotTableWizard ' .SourceData = "Feuil1!R1C1:R75C1"' .SourceData = "Feuil1!R1C1:R" & Cstr(rows-1) & "R" & Cstr(maxcols) .SourceData = "Feuil1!A1:J75" .Name = "GAP" .RowGrand = True .ColumnGrand = True End With ' ça plante juste au dessus )o; xlApp.Workbooks(1).Worksheets("Feuil4").Activate xlApp.Workbooks(1).Worksheets("Feuil4").Name = "GAP" xlApp.Workbooks(1).Worksheets("GAP").PivotTables("GAP").PivotFields("Motif").Orientation = "1" ' First Row xlApp.Workbooks(1).Worksheets("GAP").PivotTables("GAP").PivotFields("Noit").Orientation = "1" ' Second Row xlApp.Workbooks(1).Worksheets("GAP").PivotTables("GAP").PivotFields("Action").Orientation = "2" ' Column With xlApp.Workbooks(1).Worksheets("GAP").PivotTables("GAP").PivotFields("Action") .Orientation = "4" ' 4 = xlDataField .Name = "nb" .Function = "1" ' 1 = xlCount End With