If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Changing Pivot Table Selectors

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-04, 09:59
Master82 Master82 is offline
Registered User
 
Join Date: Jul 2004
Location: North West England
Posts: 2
Arrow Changing Pivot Table Selectors

I have two pivot tables, both contain the same selectors (Department & Team Manager) which will enable you to drill down. [ie view only the values for the selected departments]

How if selecting a department in the first pivot table can I get the second pivot table to select the same department (same for team Manager too)?

Basicall so I dont have to select the required department/Team Manager twice!

Please help if you have a solution, maybe a drop down box that controls the pivot tables or something? VB code? Anything!
Reply With Quote
  #2 (permalink)  
Old 07-22-04, 11:01
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
You could use VBA and set it up to link to an Option button on the worksheet. For instance, this code would allow you to change from monthly view to quarterly view of same data. You could add more lines to adjust the other pivot table, or you could have two option buttons one for each pivot table, and that way your double selection would be in one area.

Code:
Private Sub OptionButton1_Click()
'   Months only
    Application.ScreenUpdating = False
    With ActiveSheet.PivotTables(1).PivotFields("Month")
        .PivotItems("Jan").Visible = True
        .PivotItems("Feb").Visible = True
        .PivotItems("Mar").Visible = True
        .PivotItems("Q1").Visible = False
 
    End With
End Sub
At least this might point you in the right direction.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On