Code to trigger drop down-select event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top