Pivot Table Filter from cell text

Sandy25

New Member
Joined
Jul 30, 2002
Messages
35
I am using an Excel 2003 Pivot Table to browse an OLAP cube that I’ve created. I would like to add User Name as a filter (page field). The cube has so many User Name records that when I try to use the filter functionality it takes way too long plus it’s difficult to navigate. I would like to be able to enter the user name into a cell and have it filter.

Is there an easy way to do this or does it require VBA? I’ve tried the VBA and I’m not getting it to work. Here’s the link I’m looking at for the VBA Example. http://blogs.msdn.com/gabhan_berry/archive/2008/01/31/using-cell-text-to-filter-pivottables.aspx

Thanks.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You can do this with a fairly simple Macro. Here is an example assuming your filter cell is A1 in a Sheet named Sheet1 and your pivot table is in Sheet2.

variable = Sheets("Sheet1").Range("A1")
Sheets("Sheet2").PivotTables("Pivot Table 1").PivotFields("Insert Your Page Header Here"). _
CurrentPage = variable

Regards,

Jason
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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