Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"John" wrote:
Is there any way to have a routine pause but still allow the user to use the worksheet during the pause? Use Application.OnTime. Be sure to put the procedures (at least the OnTime procedure) into a standard module (click on Insert, then Module in VBA), not a worksheet module (right-click Excel tab, click on View Code). Example.... Sub doit1() With Sheets("sheet2").Range("a1") .Value = Now .NumberFormat = "m/dd/yyyy h:mm:ss" .EntireColumn.AutoFit End With Application.OnTime Now + TimeSerial(0, 0, 3), "doit2" End Sub Sub doit2() With Sheets("sheet2").Range("a2") .Value = Now .NumberFormat = "m/dd/yyyy h:mm:ss" End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Self closing "modal" window ? | Excel Programming | |||
Excel Dialog being "Non-Modal"? | Excel Programming | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |