LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default Coding with pivots and Multiselect list

I have a pivot table that I'm refreshing based upon the values on a form.
Parameter is updated by combobox1 Specialty is updated by a multiselect
listbox and region is updated by combobox3. I've found that in order to
make the Specialty selections work for the pivot, I have to iterate through
the .PivotItems and make them all hidden, then I loop through the listbox to
determine what was selected. Using an array to store those values I then
unhide the .PivotItems saved in the array as selected items. This code
works if you build the pivot from scratch (via code) each time. However,
for this particular pivot it gives me the runtime '1006' because it is
saying that I can't hide everything, I need at least 1 selection. Has
anyone ever worked around this or think of a better way to deal with a
multiselect listbox as critera for a pivot?

Cheers,

Job


 
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
can I have a multiselect option for a list box in excel 2003 pascaleinlove Excel Discussion (Misc queries) 1 March 15th 10 06:41 PM
Drop down list - color coding Sue Excel Worksheet Functions 1 August 25th 09 11:54 PM
How do I create a multiselect drop down list Yve Excel Worksheet Functions 2 January 22nd 09 07:29 PM
Multiselect list box ptaylor[_2_] Excel Programming 5 January 28th 05 05:35 PM
Pivots using other pivots and dynamic query problem lc Excel Programming 0 November 7th 03 03:02 PM


All times are GMT +1. The time now is 03:08 AM.

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"