LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default application.wait help


I could really use some help with one. I almost get it but then run
smack into a wall. It's hard to explain but I'll try my best.

Cell A1 receives it's data from another application. It's a pressure
reading.

The user needs to be able to adjust a control knob on a machine that in
effect, changes the value of A1 by controlling the pressure. That part
all works fine. The machine functions, A1 values change like they
should.

As A1 changes, the values of B1 and C1 change as well.

When the desired pressure is met, I have individual control buttons
that run macros to copy A1:C1 to 11 locations on the worksheet in
series.

I'm trying to automate the process so that A1 is monitored and upon
reaching a specified value, will run the macros in series.

To monitor A1, I use M1 as the preset value. When A1=M1 run the first
macro.

At that point, the process needs to wait while an adjustment is made to
the control knob and to another mechanical part. I need a short delay
for the adjustments to be carried out [application.wait with a value..I
have that figured out] As the adjustments are made, A1 < M1 BUT when it
again equals A1, I want the next macro to run.

Application.wait seemed like the answer but it's not because while the
application.wait process is going on, A1 is sitting there in limbo and
the value is not changing while the adjustments are made.

As soon as the application.wait time has expired, my current code calls
the next macro and it's grabbing inaccurate data.

Any and all ideas are welcome! Please, someone that knows VB respond to
me on this. I'm 99% of the way to where I need to be and there's this
one last little hurdle...


--
flowtester
------------------------------------------------------------------------
flowtester's Profile: http://www.excelforum.com/member.php...o&userid=29300
View this thread: http://www.excelforum.com/showthread...hreadid=490167

 
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
sendkeys(keys,wait) how do I use wait MM Excel Discussion (Misc queries) 1 February 11th 09 03:47 PM
Should I Wait? Chaplain Doug Excel Discussion (Misc queries) 0 February 6th 07 04:58 PM
Application.wait... won't! Peter Rooney Excel Programming 12 November 17th 06 04:31 AM
Application.wait & Blinking Connector Tom Rudski[_2_] Excel Programming 1 March 6th 04 05:36 PM
wait Eddie[_4_] Excel Programming 3 November 15th 03 03:37 PM


All times are GMT +1. The time now is 05:48 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"