LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default About calling highest level in columnfield

Hi!

I have a problem in writing VBA related to Pivot Table. I
hope somebody can help me.

My data in Pivot Table is from OLAP cube. I want to do
filtering according to the highest level of column fields.

For example, if my column fields are arranged as District
first and then Year(i.e. Region A/2002, Region A/2003,
Region A/2004, Region B/2002, Region B/2003, ......), I
can choose one of the district as a filter item. If my
column fields are arranged as Year first and then
District (i.e. 2002/Region A, 2002/Region B, 2003/Region
A, 2003/Region B, ......), I can only choose one of the
year as a filter item.

I try to use "columnfields(x)" to call them.
However, "columnfields(1)" doesn't mean the highest level
of column fields. It seems that "columnfields(1)" is
assigned to field which is firstly dragged to column
field in pivot table.

Hope somebody can help me. Thanks

Best Wishes,
Polly
 
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
Display the Highest, Second Highest, Third Highest and so on... gkb Excel Discussion (Misc queries) 7 December 1st 06 10:45 PM
2 rows, highest No in row 1, then highest number in row 2 relating to that column, possible duplicates John Excel Worksheet Functions 3 August 11th 06 04:34 AM
Calling an Add-In BillCPA Excel Discussion (Misc queries) 2 August 11th 05 09:32 PM
Calling SUB Peter Longstaff Excel Programming 2 February 23rd 04 08:04 PM
Why, when I create workbook-level name does it jump it to Sheet-level ? Charles Jordan Excel Programming 1 November 5th 03 08:43 PM


All times are GMT +1. The time now is 02:16 PM.

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

About Us

"It's about Microsoft Excel"