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
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I did and am now furiously trying to understand the VBA tutorial on line in MSDN!
I did read about slicers, unfortunately I've got 2007 but the slicer would be great!
 
Upvote 0
Where is your ComboBox from? What are the names of the pivot tables and on which sheets are they? Also what are the names of the report filters?
 
Upvote 0
combox is on the dashboard - a separate sheet in the workbook, pivot table is just pivot table 1 /2/3 etc and pivot table is on a sheet called 'val pivot'
i haven't given the report filters any names so it has taken the field names - 'Supplier'
 
Upvote 0
What sort of ComboBox is it? Data Validation, Form Control or ActiveX? If the former which cell is it in; if the latter what's its name?
 
Upvote 0
its a form control and its on sheet 2 at c3 but floats on top of c3 so does overlap some other cells
 
Upvote 0
Does this work for you when assigned to your ComboBox?

Code:
Sub Pivots()
    With ActiveSheet.DropDowns(Application.Caller)
        Worksheets("val pivot").PivotTables(1).PivotFields("Supplier").CurrentPage = .List(.ListIndex)
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,136
Messages
6,129,084
Members
449,485
Latest member
greggy

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