Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I currently have several worbooks that run queries against a database and
create reports. I want to open and loop through the workbooks using another workbook to open and run a grouped reporting macro. Data is brought into Excel by the statement " With ActiveSheet.QueryTables.Add(Connection:=ConnectStr ing, Destination:=Range(DataTarget), Sql:=mySQL) .Refresh (BackgroundQuery = False) End With" This is a part of a three step grouped code (GetData, CreateReports, PublishReports). The CreateReports code does not wait for the data to return. How can I force the code to pause during this data return? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Pause during Dialog Box data entry | Excel Discussion (Misc queries) | |||
getting VBA to pause while external data loads from web | Excel Programming | |||
Pause Macro to enter data in cell | Excel Programming | |||
Pause Macro to enter data in cell | Excel Programming | |||
Code to return the data a chart is based on | Excel Programming |