PC Review


Reply
Thread Tools Rate Thread

chart/worksheet/macro interaction

 
 
=?Utf-8?B?bmMxMDAwMQ==?=
Guest
Posts: n/a
 
      31st Jul 2005
I am running a macro which simulates an engineering application. The macro
essentially time steps, sending the data at each time step to a worksheet,
and a chart is set up to display the data in graphical form.

Problem - although the worksheet is updated at each time step, the chart
only updates when the macro has finished executing - and I want to see the
data being graphed as the simulation proceeds - is there anyway of getting
the macro to pause while the chart is updated - some kind of handshake
between EXCEL and the macro? (At the moment the only way I can do this is to
put a STOP in the code loop.)

Thanks in advance


 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      31st Jul 2005
Have you turned off screen updating or calculation to speed the macro?
Turn them back on in each loop. Also try the DoEvents, which tells Excel
to let the computer do some of the other things it's waiting to do, like
refresh screens and the like.

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


nc10001 wrote:

> I am running a macro which simulates an engineering application. The macro
> essentially time steps, sending the data at each time step to a worksheet,
> and a chart is set up to display the data in graphical form.
>
> Problem - although the worksheet is updated at each time step, the chart
> only updates when the macro has finished executing - and I want to see the
> data being graphed as the simulation proceeds - is there anyway of getting
> the macro to pause while the chart is updated - some kind of handshake
> between EXCEL and the macro? (At the moment the only way I can do this is to
> put a STOP in the code loop.)
>
> Thanks in advance
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet copy without user interaction Sunicro Microsoft Excel Programming 2 21st Dec 2007 09:45 PM
Macro/Worksheet interaction =?Utf-8?B?UmV3b3AgRWlsc2Vs?= Microsoft Excel Programming 7 6th Oct 2006 11:13 PM
Need Help with Dynamic Chart Worksheet Change Macro clmarquez Microsoft Excel Programming 3 13th Jan 2006 05:38 PM
macro/worksheet/chart interaction nc10001 Microsoft Excel Misc 1 31st Jul 2005 02:33 PM
chart/worksheet/macro interaction nc10001 Microsoft Excel Discussion 1 31st Jul 2005 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:44 PM.