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: 3,986
Default delaying cell entries

I use this function to insert delays in some of my code.

Public Function HalfSecDly()
s = Timer + 0.5
Do While Timer < s
DoEvents
Loop
End Function

You can set the time to different values in seconds by adjusting the number
in this line:

s = Timer + 0.5

In your example you would need two functions with different names and
different values, then simply call the function by name where you want the
delay.



"Sandy" wrote:

I would like to delay cell entries in a sub eg

Sub()

*****Code*****

Range("A1").Value = 10

*****Delay of 0.5 seconds*****

Range("B1".Value = 25

*****Delay of 0.5 seconds*****

Range("C1").Value = 60

*****Delay of 2 seconds*****

*****More Code*****
etc

End Sub

Can anyone explain best way to do this?
TIA
Sandy

 
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
How can cell entries be based on word entries in another cell ? lifewings Excel Worksheet Functions 1 June 24th 08 05:45 PM
How to line break in one cell via a formula to stack cell entries Barb @ Work Excel Worksheet Functions 7 April 15th 08 09:01 PM
Delaying until Recalcu code is done. -\) Excel Programming 4 December 9th 04 06:16 AM
Excel VBA- Time delaying macro bsmith1 Excel Programming 4 July 8th 04 10:05 PM
Delaying calculations Jerry Park Excel Programming 0 September 22nd 03 02:33 PM


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