ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ChartObject index (https://www.excelbanter.com/excel-programming/289542-chartobject-index.html)

Claude

ChartObject index
 
How do I get an active chart's chartobject index?
MsgBox (ActiveChart.ChartObjects.Index)doesn't work!


Shailesh Shah[_2_]

ChartObject index
 


Regards,
Shah Shailesh
http://members.lycos.co.uk/shahweb/


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Shailesh Shah[_2_]

ChartObject index
 
Try this,

Sub test()
MsgBox ActiveChart.Index
MsgBox ActiveSheet.Index
End Sub

If it is embeded on the sheets
Sub test1()
MsgBox ActiveSheet.ChartObjects("Chart 1").Index
End Sub


Regards,
Shah Shailesh
http://members.lycos.co.uk/shahweb/


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jon Peltier[_6_]

ChartObject index
 
ActiveChart.Parent.Index

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

Claude wrote:

How do I get an active chart's chartobject index?
MsgBox (ActiveChart.ChartObjects.Index)doesn't work!




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

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