Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nc10001
 
Posts: n/a
Default chart/worksheet/macro interaction

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


  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

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
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
macro/worksheet/chart interaction nc10001 Excel Discussion (Misc queries) 1 July 31st 05 02:33 PM
... interaction with Word ... Dr. Darrell Excel Discussion (Misc queries) 2 July 21st 05 10:42 PM


All times are GMT +1. The time now is 07:52 AM.

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"