Pivot tables and using combox box selections as a report filter

rlodge5

New Member
Joined
Dec 4, 2014
Messages
15
Hi, I need to use a combo box value in a report filter for a series of pivot tables.
I have a combo box with a drop down list of suppliers on the dashboard front sheet and want to be able to select one of the values and then update all the pivot tables/charts with the report filter using that value selected.

Any ideas gratefully received!
Thanks
Richard
 
Turn on the macro recorder. Select one item from the pivot table's Supplier field. Turn off the macro recorder, copy the VBA code and paste it into a reply here.
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
here it is
Sub Macro99()
'
' Macro99 Macro
'


'
ActiveSheet.PivotTables("PivotTable1").PivotFields("Supplier").CurrentPage = _
"(All)"
With ActiveSheet.PivotTables("PivotTable1").PivotFields("Supplier")
.PivotItems("BIRDS EYE LTD ").Visible = True
End With
End Sub
 
Upvote 0
In that case I don't really see why the code in Post #17 isn't working. I do notice that there is a trailing space at the end of "BIRDS EYE LTD ". Maybe that's your problem.
 
Upvote 0

Forum statistics

Threads
1,216,146
Messages
6,129,142
Members
449,488
Latest member
qh017

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