Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
I have assigned a macro to a chart, (i.e. code executes when chart is clicked)and would like to refer back to the chart that has just been clicked, similar to referring to "ActiveChart", except that in this case the click does not activate the chart. Is this possible, or does one have to assign an individual macro to every chart (and refer to the specific chart)? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Claude -
Application.Caller, in the called macro, tells you the name of the chart object. So refer to the chart using activesheet.ChartObjects(Application.Caller) - Jon ------- Jon Peltier, Microsoft Excel MVP Peltier Technical Services http://PeltierTech.com/Excel/Charts/ _______ Claude wrote: Hi all I have assigned a macro to a chart, (i.e. code executes when chart is clicked)and would like to refer back to the chart that has just been clicked, similar to referring to "ActiveChart", except that in this case the click does not activate the chart. Is this possible, or does one have to assign an individual macro to every chart (and refer to the specific chart)? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
assigning macro | Excel Discussion (Misc queries) | |||
Assigning A Macro to A Button | Excel Worksheet Functions | |||
assigning a macro to a button | Excel Discussion (Misc queries) | |||
Assigning a Hyperlink to a Macro | Excel Discussion (Misc queries) | |||
Assigning formula using a macro | Excel Programming |