Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Question on pivot tables

Let's say a pivot table has two fields - "country" and "fruit". There are
seven products and seven countries, and I want to flip through all 49
permutations.

However, if one product isn't present in one country (for example, let's say
"apple" does not exist in "england"), then rather than returning the error,
the vba code forces "apple" over the top of another fruit that does exist.
So the code firstly selects "england", then (if I were doing it manually) I
would drop down the fruit box and see that "apple" wasn't present. But the
code basically screws the pivot table.

My horrible workaround is to go to the raw data and filter on "England" and
"Apple", and (seeing no rows returned), I would skip this combination when
flipping the pivot.

There must be a better way...

Thanks in advance
Daniel


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,180
Default Question on pivot tables

Excel 2007 PivotTable
GetPivotData, skip items with no data.
http://c0718892.cdn.cloudfiles.racks.../03_22_10.xlsm
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
Question about Pivot Tables Little Penny[_3_] Excel Programming 4 September 28th 07 04:02 PM
Pivot Table Question: SubTotals for 2 of 4 Pivot Tables in same worksheet [email protected] Excel Programming 0 December 19th 06 05:13 PM
Pivot Tables - "simple" question Eoin Bairead Excel Discussion (Misc queries) 1 February 28th 05 07:07 PM
Question about Pivot Tables..why is that ~D~ Excel Discussion (Misc queries) 3 January 18th 05 07:36 AM
Question About Pivot Tables Shashi Bhosale Excel Programming 1 September 3rd 03 03:06 PM


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