• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Hyperlink Individual Chart Segment/Element

2696883

New Member
Is there any way to link insert a hyperlink to an individual chart element? I have several pie charts that I want to link to each other - so if one chart shows a breakdown of data by regions, clicking on a particular region will link to a second chart that breaks down the data by countries in that region.

I can link the entire chart to a different worksheet through using the following code:

Code:
ActiveSheet.ChartObjects(1).Activate
ActiveChart.Hyperlinks.Add Anchor:=Selection.ShapeRange.Item(1), Address:="", SubAddress:="'Regions'!A1"

However this only links the entire chart, and not an individual segment or element.
 
I don't think you can do it with Hyperlinks, but if the chart is on it's own Chart Sheet, you can use the Chart_Select macro, and then detect which element is selected.
 
Back
Top