Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Programmatically reading data field values from PivotTable

Hi

I am trying to find a way to programmatically read the sub-total values from
the data field of a pivot table. The problem is that i don't seem to be able
to access the single pivot items in the Data Field. I read a KB article
describing this as a problem in MS Excel's object model
(http://support.microsoft.com/default...en-us;Q213455). Anyway the
suggested workaround doesn't work as even when accessing the fields from
the'VisibleFields' property of the pivot table object instead of 'DataFields'
I get exactly the same field objects among which the one generated by the
aggregate function 'Count of..', which contains no pivot items.

Is there another way to read the values of the generated sub totals in a
pivot table or am i doing something wrong?

--
Thanks in advance
/Enrico
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Programmatically reading data field values from PivotTable



have you tried GetPivotDATA worksheet function?




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Enrico Campidoglio wrote :

Hi

I am trying to find a way to programmatically read the sub-total
values from the data field of a pivot table. The problem is that i
don't seem to be able to access the single pivot items in the Data
Field. I read a KB article describing this as a problem in MS Excel's
object model
(http://support.microsoft.com/default...en-us;Q213455).
Anyway the suggested workaround doesn't work as even when accessing
the fields from the'VisibleFields' property of the pivot table object
instead of 'DataFields' I get exactly the same field objects among
which the one generated by the aggregate function 'Count of..', which
contains no pivot items.

Is there another way to read the values of the generated sub totals
in a pivot table or am i doing something wrong?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Programmatically reading data field values from PivotTable

That's it! Thanks a lot

--
/Enrico


"keepITcool" wrote:



have you tried GetPivotDATA worksheet function?




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Enrico Campidoglio wrote :

Hi

I am trying to find a way to programmatically read the sub-total
values from the data field of a pivot table. The problem is that i
don't seem to be able to access the single pivot items in the Data
Field. I read a KB article describing this as a problem in MS Excel's
object model
(http://support.microsoft.com/default...en-us;Q213455).
Anyway the suggested workaround doesn't work as even when accessing
the fields from the'VisibleFields' property of the pivot table object
instead of 'DataFields' I get exactly the same field objects among
which the one generated by the aggregate function 'Count of..', which
contains no pivot items.

Is there another way to read the values of the generated sub totals
in a pivot table or am i doing something wrong?


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
PivotTable - summing more than one data field Kruti Excel Discussion (Misc queries) 4 July 27th 06 12:40 AM
Excel should allow purging since-deleted PivotTable field values. amr Excel Discussion (Misc queries) 1 March 23rd 06 04:33 PM
function to reference all of pivottable data field array andrew Excel Worksheet Functions 0 February 22nd 06 05:54 PM
Pivottable data field nc Excel Discussion (Misc queries) 0 September 30th 05 12:44 PM
PivotTable Column Field Values Michael Rekas Excel Discussion (Misc queries) 2 December 10th 04 02:18 PM


All times are GMT +1. The time now is 11:03 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"