+ Reply to Thread
Results 1 to 5 of 5

How to use a ListBox to filter Pivot Tables in Excel 2007

  1. #1
    Registered User
    Join Date
    08-18-2016
    Location
    Monroe
    MS-Off Ver
    2007
    Posts
    3

    How to use a ListBox to filter Pivot Tables in Excel 2007

    Is there a way to use ether a User Form or an ActiveX Listbox/Combo Box to filter out a Pivot Table or All 8 of My Pivot Tables?
    I can get my data from my pivot filter into my list box. So say i have a list box full of data! How do i get that data to communicated to my pivottable filter? I want the Listbox to say to the PivotTable, "Hey i want to filter X make it happen!".







    I've very new to Excel 2007. I have no way of using slicers in 2010 or beyond. I'm stuck with 2007.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to use a ListBox to filter Pivot Tables in Excel 2007

    Would you confirm that you still only have Excel 2007. If you had 2010 or later you could use Pivot Table Slicers which achieve the same functionality as selecting from a list box and then having a macro to use the selected item in some filtering code.

    But perhaps stating the obvious why not just include the field to be filtered in the Report Filter area of the PT and select from there.
    Last edited by Richard Buttrey; 08-23-2016 at 01:01 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-18-2016
    Location
    Monroe
    MS-Off Ver
    2007
    Posts
    3

    Re: How to use a ListBox to filter Pivot Tables in Excel 2007

    I'm only limited to 2007. I am aware of splicers in 2010 and later. I have worked with 2010 and later but have never had the need to work with excel 2007.

    I could do that with the Report Filter however, this situation requires a list box be added to the sheet.

  4. #4
    Registered User
    Join Date
    08-18-2016
    Location
    Monroe
    MS-Off Ver
    2007
    Posts
    3

    Re: How to use a ListBox to filter Pivot Tables in Excel 2007

    So I took it upon myself to figure it out! So here i go for the next person!

    --let make it "Clear" I am using Excel 2007!

    You need to fill the Combo box control with all the pivot item of the filter field and a "(All)" item, and then add a change event for that combo box control.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Put these two procedure within the module which the combo box control locate at, run the first procedure "FillComboBox", and then select a item from dropdown list of the combo box control, you would see that the pivottable also would update.


    If you need to ask me how to tie in multi pivot tables message me.

  5. #5
    Registered User
    Join Date
    10-26-2012
    Location
    Hampshire
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to use a ListBox to filter Pivot Tables in Excel 2007

    Quote Originally Posted by Peytonput View Post
    So I took it upon myself to figure it out! So here i go for the next person!

    --let make it "Clear" I am using Excel 2007!

    You need to fill the Combo box control with all the pivot item of the filter field and a "(All)" item, and then add a change event for that combo box control.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Put these two procedure within the module which the combo box control locate at, run the first procedure "FillComboBox", and then select a item from dropdown list of the combo box control, you would see that the pivottable also would update.


    If you need to ask me how to tie in multi pivot tables message me.
    Peytonput, check your inbox.... PM sent regarding the use of multiple pivot tables with your code above.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel 2007 Issue : How To Get ListBox Items To Filter Pivot Table?
    By Peytonput in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-23-2016, 12:13 PM
  2. Link two pivot tables excel 2007
    By cpramesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2016, 07:26 PM
  3. Filter several pivot tables by one programmed date range filter in Excel 2003
    By olewka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2011, 11:49 AM
  4. Excel 2007 : Working with Pivot Tables in Excel 2007
    By GrahamButler1970 in forum Excel General
    Replies: 1
    Last Post: 03-04-2011, 08:13 AM
  5. Replies: 1
    Last Post: 03-20-2010, 04:08 AM
  6. [SOLVED] Excel 2007 : Pivot Tables...using two different columns?
    By THORmx in forum Excel General
    Replies: 1
    Last Post: 08-07-2008, 08:46 PM
  7. Pivot tables Excel 2003/2007
    By Kaak in forum Excel General
    Replies: 0
    Last Post: 01-03-2007, 07:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1