Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Pause While User Clicks on Chart Series

I have a code that exectutes, and when it comes to a certain point a chart
pops up. I want the code to pause while the user clicks on the curve. Once
this is done, the code will resume execution... In short, I can't seem to
figure out how to make the code stop and wait for a chart mouseup event
before continuing to execute... Can someone grace me with their knowledge...

Thanks for your help,
Jason
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Pause While User Clicks on Chart Series

Once your code brings up the chart the code should end execution. You can
attach a on click event to your chart to initialize the next bit of code. In
short macro's really dont pause to wait for the user to do something. You
need to execute your code based on events generated by the user.
--
HTH...

Jim Thomlinson


"JayWes" wrote:

I have a code that exectutes, and when it comes to a certain point a chart
pops up. I want the code to pause while the user clicks on the curve. Once
this is done, the code will resume execution... In short, I can't seem to
figure out how to make the code stop and wait for a chart mouseup event
before continuing to execute... Can someone grace me with their knowledge...

Thanks for your help,
Jason

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Pause While User Clicks on Chart Series

The OnClick event only applies to making a selection on a userform "I
believe." I need the code to stop and allow me to select a data point from a
chart series such that the x and y values are assigned to variables which are
then used in for calculations throughout the remainder of the code... It's
Excel VBA doesn't allow for this in some fashion...

If I'm wrong about my previous statement regarding the OnClick event, please
elaborate.

Thanks,
Jason

"Jim Thomlinson" wrote:

Once your code brings up the chart the code should end execution. You can
attach a on click event to your chart to initialize the next bit of code. In
short macro's really dont pause to wait for the user to do something. You
need to execute your code based on events generated by the user.
--
HTH...

Jim Thomlinson


"JayWes" wrote:

I have a code that exectutes, and when it comes to a certain point a chart
pops up. I want the code to pause while the user clicks on the curve. Once
this is done, the code will resume execution... In short, I can't seem to
figure out how to make the code stop and wait for a chart mouseup event
before continuing to execute... Can someone grace me with their knowledge...

Thanks for your help,
Jason

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Pause While User Clicks on Chart Series

You can use chart events to launch procedures:

http://www.computorcompanion.com/LPMArticle.asp?ID=221

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"JayWes" wrote in message
...
The OnClick event only applies to making a selection on a userform "I
believe." I need the code to stop and allow me to select a data point
from a
chart series such that the x and y values are assigned to variables which
are
then used in for calculations throughout the remainder of the code...
It's
Excel VBA doesn't allow for this in some fashion...

If I'm wrong about my previous statement regarding the OnClick event,
please
elaborate.

Thanks,
Jason

"Jim Thomlinson" wrote:

Once your code brings up the chart the code should end execution. You can
attach a on click event to your chart to initialize the next bit of code.
In
short macro's really dont pause to wait for the user to do something. You
need to execute your code based on events generated by the user.
--
HTH...

Jim Thomlinson


"JayWes" wrote:

I have a code that exectutes, and when it comes to a certain point a
chart
pops up. I want the code to pause while the user clicks on the curve.
Once
this is done, the code will resume execution... In short, I can't seem
to
figure out how to make the code stop and wait for a chart mouseup event
before continuing to execute... Can someone grace me with their
knowledge...

Thanks for your help,
Jason



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Selectable Series and Number of Series for Line Chart Dave in NJ Charts and Charting in Excel 2 February 23rd 09 12:18 AM
How to have errr msg pop up when user clicks on locked cell perfection Excel Discussion (Misc queries) 4 May 29th 07 06:27 AM
Counter for user clicks Anthony Excel Programming 5 March 5th 07 01:51 PM
Invalid Picture Error when user clicks on toolbar David Welch[_2_] Excel Programming 1 March 24th 05 10:24 AM
How to create a URL and when user clicks it to open a Excel workbook Belinda Excel Programming 2 May 30th 04 01:06 PM


All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"