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: 4
Default pause vba action without using Application.Wait?

I have have a VBA program that uses a DDE link to refresh data values.
It takes about 10 seconds for the data to completely fill in. Once it
fills in, I use copy, then paste values to store the new values, and
then contnue processing the data through more vba code.


The problem is that I need to wait about 10 seconds for the data to
fill in with the DDE link. The VBA helpfile recommends using this code

to wait 10 seconds:


newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 10
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime


but the problem is that it pauses all Excel processing for those 10
seconds (not just the VBA code processing but all Excel) and the DDE
links don't update during the time. Is there a way I can pause my VBA
code, keep the Excel application processing during that time and then
resume my VBA code?

 
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
Application.wait... won't! Peter Rooney Excel Programming 12 November 17th 06 04:31 AM
When Excel wait for OLE action allow cancel so not have to end pr sferrell615 Excel Discussion (Misc queries) 0 August 4th 06 02:46 PM
Different syntax for Application.Wait Desert Piranha[_19_] Excel Programming 3 December 16th 05 12:13 PM
application.wait help flowtester Excel Programming 10 December 4th 05 03:47 PM
wait for user action in VBA code benb Excel Programming 4 September 24th 04 09:05 PM


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