ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Returning the name of a chart (https://www.excelbanter.com/excel-programming/394224-returning-name-chart.html)

Gordon Humphreys[_2_]

Returning the name of a chart
 

Jon Peltier helped by explaining how to see the name of a chart by
Ctrl+click on it. Is there a way of selecting a chart of unknown name -
say by clicking on it - and returning the name to use in code for
subsequent operations eg returning to it, or renaming i?


*** Sent via Developersdex http://www.developersdex.com ***

Jim Cone

Returning the name of a chart
 

One way...
Dim x As String
x = ActiveChart.Name
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Gordon Humphreys"
wrote in message
Jon Peltier helped by explaining how to see the name of a chart by
Ctrl+click on it. Is there a way of selecting a chart of unknown name -
say by clicking on it - and returning the name to use in code for
subsequent operations eg returning to it, or renaming i?
*** Sent via Developersdex http://www.developersdex.com ***

Jon Peltier

Returning the name of a chart
 
If it's an embedded chart, use ActiveChart.Parent.Name

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


"Jim Cone" wrote in message
...

One way...
Dim x As String
x = ActiveChart.Name
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Gordon Humphreys"
wrote in message
Jon Peltier helped by explaining how to see the name of a chart by
Ctrl+click on it. Is there a way of selecting a chart of unknown name -
say by clicking on it - and returning the name to use in code for
subsequent operations eg returning to it, or renaming i?
*** Sent via Developersdex http://www.developersdex.com ***





All times are GMT +1. The time now is 10:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com