ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   changing pivot table views with a macro (https://www.excelbanter.com/excel-programming/322228-changing-pivot-table-views-macro.html)

Baileys Cigs

changing pivot table views with a macro
 
I want to create a macro that lets you change the arrangement of a pivot
table. Need to know where to begin.

Tom Ogilvy

changing pivot table views with a macro
 
Turn on the macro recorder and make the changes to the pivot table manually.
Turn off the macro recorder and look at the recorded code. This should be
where to begin.

Some more information may be found at Debra Dalgleish's site

http://www.contextures.com/tiptech.html

Look under P

--
Regards,
Tom Ogilvy


"Baileys Cigs" <Baileys wrote in message
...
I want to create a macro that lets you change the arrangement of a pivot
table. Need to know where to begin.




Roberto Hernandez

changing pivot table views with a macro
 
I have the same problem
This example is verry important to my but it do not work in Excel 2003 wiht
a OLAP data.
http://www.contextures.com/xlPivot03.html#ShowSpec97

the error is:
Can not get the property PivotFields of the class PivotTable in the line

Set pf = pt.PivotFields(strPF)


other erro in the line: "pi.Visible = True"
is: "Can not asign the property visible of the class PivotItem"


Thank you for your help


"Tom Ogilvy" wrote in message
...
Turn on the macro recorder and make the changes to the pivot table

manually.
Turn off the macro recorder and look at the recorded code. This should be
where to begin.

Some more information may be found at Debra Dalgleish's site

http://www.contextures.com/tiptech.html

Look under P

--
Regards,
Tom Ogilvy


"Baileys Cigs" <Baileys wrote in message
...
I want to create a macro that lets you change the arrangement of a pivot
table. Need to know where to begin.







All times are GMT +1. The time now is 12:14 AM.

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