Thanks for your Quick response.
This forum is like dream come true for me.
It works for a single chart i need it for every chart on the workbook.You can do that with a code like this
where 'MyMacro' is the macro you want to assign...Code:Private Sub Workbook_Open() Worksheets(1).Shapes(1).OnAction = "MyMacro" 'Replace the indices with the name of the worksheet and the chartobject End Sub
Thanks again.





Reply With Quote

Bookmarks