Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
sathishkumar_go
Partner - Specialist
Partner - Specialist

Export To Excel - Pivot Chart - Macro

Hi All,

I have written a macro for exporting to excel (Pivot chart) and its working fine.

Just want to know, How to remove grouping while exporting to excel in macro?

-Sathish

3 Replies
sinanozdemir
Specialist III
Specialist III

Maybe like the below:

group = ActiveDocument.GetGroups

group(0).RemoveField 2 -> replace 2 with the field that you want to remove from the pivot table.

Hope this helps.

sathishkumar_go
Partner - Specialist
Partner - Specialist
Author

Hi Sinan,

Thanks for your reply. Let me explain you my requirement clearly.

I have the pivot chart through macro I am exporting to excel the datas of pivot chart.

Example: After exporting the data into excel

   

ProductNameProducttypeValue
AType150
Type2

100

I don't want merged cells. what I am expecting,   

ProductNameProducttypeValue
AType150
AType2100
sinanozdemir
Specialist III
Specialist III

Hey Sathish,

I don't get that merged cell problem when I export a pivot table via a macro or the export button on the pivot table. Would you post your macro by any chance?