Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how can you have a macro wait until a external connections have been updated
before contunueing? practically, the macro has to wait until the following code has been finished before continueing. ActiveWorkbook.RefreshAll Tried Application.Wait (Now + TimeValue("0:00:15")) but this stops everything, even the refresh. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi, Luc !
how can you have a macro wait until a external connections have been updated before contunueing? practically, the macro has to wait until the following code has been finished before continueing. ActiveWorkbook.RefreshAll Tried Application.Wait (Now + TimeValue("0:00:15")) but this stops everything, even the refresh. if 15 seconds are enought wait-time for the rest of your procedure... try using two macros (i.e.) Sub Macro1() ActiveWorkbook.RefreshAll Application.OnTime Now + TimeValue("0:00:15"), "macro2" End Sub Sub Macro2() ' here the rest of your procedure... ' End Sub hth, hector. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Wait statement in macro | Excel Discussion (Misc queries) | |||
sendkeys(keys,wait) how do I use wait | Excel Discussion (Misc queries) | |||
Macro Wait command | Excel Programming | |||
Macro Wait command | Excel Programming | |||
finding the first blank cell and then executing rest of macro | Excel Programming |