ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot Charts (https://www.excelbanter.com/excel-programming/294417-pivot-charts.html)

James L[_3_]

Pivot Charts
 
Hello

If I have a pivot chart that could have any combination of page fields, row fields, column fields, data fields. How can i clear them all (without deleting the chart) using a macro. So once the macro has been run the chart is empty ready to recieve new fields. i take it you must use a loop

Thanks in advance
James

Brad Vontur[_2_]

Pivot Charts
 
Try something like this

Dim f As PivotFiel
For Each f In Chart1.PivotLayout.PivotField
f.Orientation = xlHidde
Nex

-Brad


All times are GMT +1. The time now is 02:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com