Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Application.Quit ?
Is your workbook the only thing your users use Excel for ? Best wishes Harald "Luke Bailey" skrev i melding ... I have a workbook with an ON-OPEN VB sub that runs which refreshes a web query, then saves, then closes. The code is below: Range("B2").Select Selection.QueryTable.Refresh BackgroundQuery:=False DoEvents ActiveWorkbook.Save Application.DisplayAlerts = True Application.Quit I am not having problems with the workbook, but some of my users in other locations with similar workbook are having problems (workbook opens and saves, but seems to do so before the web query refreshes. Is there anything else other than DoEvents that can be used to pause code execution? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help - VBA Code execution in Excel | New Users to Excel | |||
Pause code in vb | Excel Programming | |||
Pause code, wait for input, no input received, carry on with the code | Excel Programming | |||
Pause code for data return | Excel Programming | |||
Pause in execution | Excel Programming |