+ Reply to Thread
Results 1 to 2 of 2

Code to trigger drop down-select event

  1. #1
    Excel User
    Guest

    Code to trigger drop down-select event

    I have a workbook that contains three worksheets:
    a data table
    a pivot table report of the data table (with the "Organization" field
    located in the pivot table's Page field)
    a switchboard with a drop-down box that contains the organizations listed in
    the data table and pivot table

    I need some code that selects the organization in the Organization page
    field of the pivot table that corresponds to the organization selected from
    the drop down. So, if one selects, say, "New York" from the drop-down box,
    "New York" is selected from the pivot table Page field ("Organization") and
    the pivot table refreshes to show New York-only data.

    Thanks,
    EU

  2. #2
    Tom Ogilvy
    Guest

    Re: Code to trigger drop down-select event

    Turn on the macro recorder and change the value in the pagefield of the
    pivot table.

    Now turn off the macro recorder. Now generalize the code so the hard coded
    value uses a variable that is populated with the value of the dropdown.

    --
    Regards,
    Tom Ogilvy

    "Excel User" <ExcelUser@discussions.microsoft.com> wrote in message
    news:D45663BF-53F6-48B9-98A8-7F3B1C6DD8B8@microsoft.com...
    > I have a workbook that contains three worksheets:
    > a data table
    > a pivot table report of the data table (with the "Organization" field
    > located in the pivot table's Page field)
    > a switchboard with a drop-down box that contains the organizations listed

    in
    > the data table and pivot table
    >
    > I need some code that selects the organization in the Organization page
    > field of the pivot table that corresponds to the organization selected

    from
    > the drop down. So, if one selects, say, "New York" from the drop-down box,
    > "New York" is selected from the pivot table Page field ("Organization")

    and
    > the pivot table refreshes to show New York-only data.
    >
    > Thanks,
    > EU




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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