Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Pivot Values

Can anyone assist me in finding the value of a pivot table field?

I have the following code which cycles through my states, but I want to get
the value associated with each one:

With Activesheet.PivotTables(1).PivotFields("STATE")
For i = 1 to .PivotItems.Count
temp = .PivotItems(i)
Next i
End With

I would like something exactly like GETPIVOTDATA, but it doesn't seem to be
available in VBA. I have played with grabbing the value from the appropriate
cell on the sheet, but if you change the layout this fails. I have also
played with setting a cell with the GETPIVOTDATA function and taking the
data from that cell, but it seems there has to be a simple code to get the
value of an item in a pivot.

Thanks,
--bnpatten


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
Paste values only from a pivot but keep the pivot design when pas. dolphin Excel Worksheet Functions 2 March 3rd 09 05:33 PM
Copying values from pivot table to cells outside pivot table richzip Excel Discussion (Misc queries) 4 January 16th 08 11:03 PM
Conditional Formatting in Pivot Based on other values in pivot. XL Mats M Excel Discussion (Misc queries) 0 November 7th 07 10:36 AM
Using Pivot Table Values mgross Excel Discussion (Misc queries) 1 June 1st 06 09:40 PM
pivot zero values BorisS Excel Worksheet Functions 0 June 15th 05 05:01 PM


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

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"