Refrencing charts on another page

ionstorm20

New Member
Joined
Apr 3, 2011
Messages
14
So the issue I have is that I've got all these charts on a page in my sheet called h2h charts and need someone to select a H2H from a list that I have selected, the problem is that there is so much information on the 50-ish charts that I've got a simple if statement is not enough. Any ideas?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi Ion,
Not very clear.
Can you elaborate that a little bit?
Do you need a dropdown list to selecet a specific chart?
 
Upvote 0
You can only select chart, but you can't get focus to it. To get focus, you should know at least one cell the chart belongs to. Follow this.

First, get charts names and fill combobox with them.

Code:
Function GetChartNames() As String()

    Dim cho As ChartObject, i As Integer, arr() As String
    
    With Sheets("h2h")
        ReDim arr(1 To .ChartObjects.Count)
        For Each cho In .ChartObjects
            i = i + 1
            arr(i) = cho.Name
        Next
    End With

    GetChartNames = arr
    
End Function

Sub FillChartsNames()
    Sheets("SOME_SHEET").ComboBox1.List = WorksheetFunction.Transpose(GetChartNames)
End Sub

Then you should calculate a range the charts belongs to. Hint: a range should have some connection with chart name.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,750
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top