Finding graph location (address) within a worksheet

nikulina

New Member
Joined
Apr 28, 2008
Messages
25
Hi,

I have a sheet with over 50 graphs in (to be clear the graphs are in the sheet not the workbook). What l am looking to do is to find a way in VB to locate where in the sheet a particular graph is located based on the graphs name.

Ideally returning a cell reference, but otherwise just a way to select the graph and bring it into view.

I've spent hours googling for some sort of a solution to this but have had no luck. Its driving me mad!!

Has anyone any ideas?

Thanks to anyone who can give some help!!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi thats great thanks, as always as soon as i posted i got some inspiration but to anyone else with the same problem please see below

Sub Test()
Dim ws As Worksheet
Dim objChartObject As ChartObject
Dim objCht As Chart
'
For Each ws In ActiveWorkbook.Worksheets
'Verify if there is a chart object
If ws.ChartObjects.Count > 0 Then
For Each objChartObject In ws.ChartObjects
'temp
namedcell = Range("a1")


MsgBox (namedcell & objChartObject.Name)
If namedcell = objChartObject.Name Then
objChartObject.Activate
Else
End If


Next objChartObject
End If
Next ws


Set ws = Nothing
Set objChartObject = Nothing
Set objCht = Nothing
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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