Display charts fro pull down menu

G

Guest

Hi
I have 8 pie charts on a worksheet.
I would like a drop down menu of items that are the chart name and when this
is selected the chart is displayed adjacent to the pull down menu, this is to
enable cycling through one chart ata time.
Thanks
 
J

JE McGimpsey

It shouldn't be hard to adapt the technique shown here:

http://www.mcgimpsey.com/excel/lookuppics.html

change the objects from Pictures to ChartObjects, e.g.:

Private Sub Worksheet_Calculate()
Dim oChart As ChartObject
Me.ChartObjects.Visible = False
With Range("F1")
For Each oChart In Me.ChartObjects
If oChart.Name = .Text Then
oChart.Visible = True
oChart.Top = .Top
oChart.Left = .Left
Exit For
End If
Next oChart
End With
End Sub
 

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

Top