C Claude Jan 29, 2004 #1 How do I get an active chart's chartobject index? MsgBox (ActiveChart.ChartObjects.Index)doesn't work!
How do I get an active chart's chartobject index? MsgBox (ActiveChart.ChartObjects.Index)doesn't work!
S Shailesh Shah Jan 29, 2004 #3 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/
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/