Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Click events on charts
I am trying to respond to a MouseUp event on a chart. I
can set up the chart as a class object and see its Activate event operate but I still can't get it to respond to a click. I think the problem is that by the time I can click on the chart, the VBA program has finished, hence it is not listening for events. Any suggestions? Steve |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Click events on charts
Hi Steve,
I am not sure if it will work for your purpose, but you can right-click on the chart and choose assign macro. It runs the assigned macro when the chart is clicked on. HTH, Greg "Steve" wrote in message ... I am trying to respond to a MouseUp event on a chart. I can set up the chart as a class object and see its Activate event operate but I still can't get it to respond to a click. I think the problem is that by the time I can click on the chart, the VBA program has finished, hence it is not listening for events. Any suggestions? Steve |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Click events on charts
Thanks, Greg. The problem is that the click on the chart
is supposed to occur as an input to an already running macro. Steve -----Original Message----- Hi Steve, I am not sure if it will work for your purpose, but you can right-click on the chart and choose assign macro. It runs the assigned macro when the chart is clicked on. HTH, Greg "Steve" wrote in message ... I am trying to respond to a MouseUp event on a chart. I can set up the chart as a class object and see its Activate event operate but I still can't get it to respond to a click. I think the problem is that by the time I can click on the chart, the VBA program has finished, hence it is not listening for events. Any suggestions? Steve . |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Click events on charts
Steve -
Your approach needs to change. The macro can't just stop in the middle awaiting your click. Perhaps you can break your macro into parts, and end the first when you need the click. The click triggers an event, which starts the second macro. It's like working with modeless forms: execution doesn't stop just because you show the form. Steve wrote: Thanks, Greg. The problem is that the click on the chart is supposed to occur as an input to an already running macro. Steve -----Original Message----- Hi Steve, I am not sure if it will work for your purpose, but you can right-click on the chart and choose assign macro. It runs the assigned macro when the chart is clicked on. HTH, Greg "Steve" wrote in message .. . I am trying to respond to a MouseUp event on a chart. I can set up the chart as a class object and see its Activate event operate but I still can't get it to respond to a click. I think the problem is that by the time I can click on the chart, the VBA program has finished, hence it is not listening for events. Any suggestions? Steve . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Displaying graph and charts on events | Excel Discussion (Misc queries) | |||
Click events on Ecel Cells | Excel Discussion (Misc queries) | |||
noting events on charts | Charts and Charting in Excel | |||
Using Events with Embedded Charts | Excel Programming | |||
trapping click events on shapes | Excel Programming |