Macro for automatically change with dropdown

maheshrk81

Board Regular
Joined
Jan 5, 2010
Messages
153
Hi All,

I have a summary sheet with lots of other Pivot data sheets. In my summary sheet i get data from all other pivot sheets with formulas. Now i need a macro when i click the Drop down in my Summary sheet, then automatically in the pivot sheet that should change.

Ex: In my summary sheet i have Dropdown for AREA - .........
when i click particular Area in the summary, automatically in other pivot sheet the pivot table Report filter should change.

(Even if with combo box or somethig ..)

Plz help..

Regards,
Mahi
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi All,

I have a summary sheet with lots of other Pivot data sheets. In my summary sheet i get data from all other pivot sheets with formulas. Now i need a macro when i click the Drop down in my Summary sheet, then automatically in the pivot sheet that should change.

Ex: In my summary sheet i have Dropdown for AREA - .........
when i click particular Area in the summary, automatically in other pivot sheet the pivot table Report filter should change.

(Even if with combo box or somethig ..)

Plz help..

Regards,
Mahi

Pls need help... Any idea on this.. :confused:
 
Upvote 0
Here is some code that I used to do something similar (make two pivot tables match)

Code:
Dim pt As PivotTable
Dim pt2 As PivotTable
Dim ws As Worksheet
Dim a1 As String
Dim a2 As String
Set ws = Worksheets("PivotTable")
Set pt = ws.PivotTables("PivotTable1")
pt.ManualUpdate = True
Set pt2 = ws.PivotTables("PivotTable2")
pt2.PivotFields("Dept").CurrentPage = pt.PivotFields("Dept").CurrentPage.Value
pt2.PivotFields("Style").CurrentPage = pt.PivotFields("Style").CurrentPage.Value
pt2.PivotFields("SKU").CurrentPage = pt.PivotFields("SKU").CurrentPage.Value
 
Upvote 0
Thanks.. Trying with that cose but not working properly.. :confused:
In my summary tab its not Pivot. Its normal drop down which is having a list is defined range. but wen i click in the summary tab, the pivot table shold change.
Plz help me..
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,392
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top