PC Review


Reply
Thread Tools Rate Thread

Click on graph bar to execute a double-click in a pivot table cell

 
 
Bill_F_Lyle@fpl.com
Guest
Posts: n/a
 
      1st Aug 2005
Excel 2002. I have a group of 6 different stacked bar charts built from
parts of a pivot table. Each graph has several bars with each bar
having sections for categories "10", "20", "30", "40", and "50". The
graphs can be direct linked to the pivot table (as a pivot chart) or
linked to an intermediate sheet looksup the data from the pivot table.
I want to be able to click (double or single click) on a graph bar or
section of a bar and execute the same action (.ShowDetail) that occurs
when you double-click on a cell in the pivot table (print the
corresponding sub-set of the data on a new sheet).

To do this I need to determine which graph bar (or section of the
stacked bar) was clicked and relate that to the appropriate cell in the
pivot table. Then I can select that cell in the pivot table and execute
"Selection.ShowDetail".

 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      2nd Aug 2005
Bill -

A pivot chart has no special events that a regular chart does not, but
it appears that you can capture the pivot chart's regular events. I
wrote a recent article on events in Excel Charts, which might help you:

http://www.computorcompanion.com/LPMArticle.asp?ID=221

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


(E-Mail Removed) wrote:

> Excel 2002. I have a group of 6 different stacked bar charts built from
> parts of a pivot table. Each graph has several bars with each bar
> having sections for categories "10", "20", "30", "40", and "50". The
> graphs can be direct linked to the pivot table (as a pivot chart) or
> linked to an intermediate sheet looksup the data from the pivot table.
> I want to be able to click (double or single click) on a graph bar or
> section of a bar and execute the same action (.ShowDetail) that occurs
> when you double-click on a cell in the pivot table (print the
> corresponding sub-set of the data on a new sheet).
>
> To do this I need to determine which graph bar (or section of the
> stacked bar) was clicked and relate that to the appropriate cell in the
> pivot table. Then I can select that cell in the pivot table and execute
> "Selection.ShowDetail".
>

 
Reply With Quote
 
Bill_F_Lyle@fpl.com
Guest
Posts: n/a
 
      2nd Aug 2005

Jon Peltier wrote:
> Bill -
>
> A pivot chart has no special events that a regular chart does not, but
> it appears that you can capture the pivot chart's regular events. I
> wrote a recent article on events in Excel Charts, which might help you:
>
> http://www.computorcompanion.com/LPMArticle.asp?ID=221
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services
> Tutorials and Custom Solutions
> http://PeltierTech.com/
> _______
>
>
> (E-Mail Removed) wrote:
>
> > Excel 2002. I have a group of 6 different stacked bar charts built from
> > parts of a pivot table. Each graph has several bars with each bar
> > having sections for categories "10", "20", "30", "40", and "50". The
> > graphs can be direct linked to the pivot table (as a pivot chart) or
> > linked to an intermediate sheet looksup the data from the pivot table.
> > I want to be able to click (double or single click) on a graph bar or
> > section of a bar and execute the same action (.ShowDetail) that occurs
> > when you double-click on a cell in the pivot table (print the
> > corresponding sub-set of the data on a new sheet).
> >
> > To do this I need to determine which graph bar (or section of the
> > stacked bar) was clicked and relate that to the appropriate cell in the
> > pivot table. Then I can select that cell in the pivot table and execute
> > "Selection.ShowDetail".
> >


 
Reply With Quote
 
Bill_F_Lyle@fpl.com
Guest
Posts: n/a
 
      2nd Aug 2005
Thanks Jon...

Excellent article and it provided just what I needed.

By the way, the article was very well written and easy to understand.
Have you published any books on excel?

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      3rd Aug 2005
Bill -

Thanks for the note, I'm glad the article was helpful. I haven't written
any books, just a few web pages now and then. Check the site in my sig.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


(E-Mail Removed) wrote:

> Thanks Jon...
>
> Excellent article and it provided just what I needed.
>
> By the way, the article was very well written and easy to understand.
> Have you published any books on excel?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do not execute Double Click Event when UserForm is Showing RyanH Microsoft Excel Programming 4 9th May 2008 09:53 PM
Re: Execute jar by double click Mark L. Ferguson Windows Vista General Discussion 0 29th Apr 2008 04:39 PM
Double click cell to execute macro =?Utf-8?B?SkRheXdhbHQ=?= Microsoft Excel Programming 12 15th Aug 2007 04:42 PM
Pivot table - double-click event to open another form =?Utf-8?B?VGlsbGFubw==?= Microsoft Access Form Coding 0 6th Mar 2007 11:39 AM
Mouse Over Graph, Capture Information on Click(Double Click) =?Utf-8?B?RGVhbiBIaW5zb24=?= Microsoft Excel Programming 1 6th Dec 2004 04:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:30 AM.