Problem with CreatePivotTable (Excel)

STKSTK Member Posts: 9
edited 2005-12-16 in Navision Attain
Hi all,

I've a problem with the CreatePivotTable (Automation Control - Excel) Statement because it works only with these Parameters:

xlAppG.ActiveWorkbook.PivotCaches.Add(1,textL).CreatePivotTable('','PivotTable1');

But then the worksheet gets the default name and thats a problem because of the Multilanguage of the Excel Versions in our company

I've tried it with nearly every possible combination but it didn't work. I want to create the Pivot table in the workbook with the name of a text constant

e.g. like:

CreatePivotTable(''+Format(C_INC006),'PivotTable1');
CreatePivotTable(Format(C_INC006),'PivotTable1');

...

Does somebody know how it could work?

Thanks in advance #-o

Comments

Sign In or Register to comment.