Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
trigger an EVENT when the value in a cell changes? Controls Freak Excel Programming 1 December 21st 04 07:24 AM
Trigger Event Todd Huttenstine Excel Programming 2 July 14th 04 06:50 PM
Format Event Trigger (XL2002) Ronald Dodge Excel Programming 2 April 27th 04 09:48 PM
Excel VBA event trigger problem Milli[_2_] Excel Programming 4 April 26th 04 08:46 AM


All times are GMT +1. The time now is 09:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"