Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default how to parse through pivot filtered items

Hi,

Excel provides visibleitems property on pivottables but there is no such
property called FilteredItems. if we have to select only filetered items in
vba program, what's the best way to do it...

say i have a pivotfield (customers#) which has say 100 items in it, if I
apply various pivotfilters (labelfilters as well as manual filters), let's
say the items reduce to 10 only, how do i parse through these 10 items only
instead of all 100 items ?

i am using below now

pvtbl1.pivotfields("customers#").pivotfilters.add value1:="xyz"
for each pvitem in pvtbl1.pivotfields("customers#").visibleitems
....
....
do something here
....
next pvitem


as you can see, even though i apply pivotfilter, i need to parse through all
100 visible items under Customer# field, where as on the screen I see only 10
items as filters are applied...

any suggestions ?
-satishbhave
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default how to parse through pivot filtered items

I am surprised to see no help coming my way....is there any one worked with
pivot tables and vba programming ? any help from microsoft excel deveopers
themselves???
-satish

"satishbhave" wrote:

Hi,

Excel provides visibleitems property on pivottables but there is no such
property called FilteredItems. if we have to select only filetered items in
vba program, what's the best way to do it...

say i have a pivotfield (customers#) which has say 100 items in it, if I
apply various pivotfilters (labelfilters as well as manual filters), let's
say the items reduce to 10 only, how do i parse through these 10 items only
instead of all 100 items ?

i am using below now

pvtbl1.pivotfields("customers#").pivotfilters.add value1:="xyz"
for each pvitem in pvtbl1.pivotfields("customers#").visibleitems
...
...
do something here
...
next pvitem


as you can see, even though i apply pivotfilter, i need to parse through all
100 visible items under Customer# field, where as on the screen I see only 10
items as filters are applied...

any suggestions ?
-satishbhave

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
items filtered roxanne Excel Discussion (Misc queries) 2 October 15th 07 03:52 PM
Managing Filtered Items Dastard[_11_] Excel Programming 1 June 15th 06 04:30 PM
Highlite filtered items Hugh Excel Programming 3 March 25th 06 04:09 PM
cut and paste filtered items ferde Excel Discussion (Misc queries) 1 December 6th 05 03:41 PM
counting filtered items mar10 Excel Worksheet Functions 3 August 25th 05 08:09 PM


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