Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Changing pivot table views with a macro

I want to create a macro that lets you change the arrangement of a pivot
table in Excel 2003 with OLAP Data.

I turn on the macro recorder and make the changes to the pivot table
manually then I see the results but is very complicated and do not work at
all. Is there a simple way to add one item and remove another item? Or to do
a do while cycle or for each cycle of all items and then select the items
that I'm interested to show.



Those are very complicated:

Hoja.PivotTables("PivotTable").CubeFields(3).Treev iewControl.Drilled

Hoja.PivotTables("PivotTable").PivotFields("[Fecha].[Year]").HiddenItemsList

The thing I need to do is to show the past 12 months of a date dimension for
a given date.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Customized Views kza40381 Excel Discussion (Misc queries) 6 September 19th 05 01:26 PM
changing pivot table views with a macro Baileys Cigs Excel Programming 2 February 2nd 05 08:29 PM
Custom Views in Pivot Table Samad Excel Discussion (Misc queries) 1 January 13th 05 01:14 AM
Changing field in Pivot Table with macro hans Excel Programming 0 June 23rd 04 09:17 AM
macro, pivot table and changing number of rows Ali[_3_] Excel Programming 1 May 14th 04 04:15 PM


All times are GMT +1. The time now is 11:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"