![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
If the Data gets refreshed at the start of a macro for Excel does the macro wait for the data to be refreshed before continuing??
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
any Ideas?
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
If Script ripps data via ODBC then YES will continue after the download is compleated and carry on with Macro..
BUt depends on exact VBA code of cause, this would be safest call off cause.. ie get the dat the work on it
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
Jack i'm only doing an
activeworkbook.refreshall then I want to wait for it to finish before continuing the rest of the macro? |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
refresh is more or less the save over / under ODBC if thats waht your using even crystal used MS ODBC drivers and Query, so should hang until compleated,
Can i ask where its going wrong?
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
I won't to make sure the data is refreshed first so that it's up to date but what is happinging
is that the keeps going on its way while the little earth at the bottom of the screen is still spinning and updating the information. I just need some kind of code to pause for a specified amount of time without pausing the application(So it keeps updating)? |
|
|
|
|
|
#7 | |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
The spinning globe world is as ODBC ripps data into excel so alls ok then when finished code will continue im sure so will be live current data. all seems ok Quote:
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
yeah but I want it to finish before the rest of the code is run?
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,065
|
exactly thats what my prev post says... ODBC will hold VBA script if ODBC is in code to rip data bfrom bespoke GLOBE hangs to allow data transfer intio excel, THEN code will continue/
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
|
|
#10 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
I know what your saying jack thats what I thought it would do as well it is refreshing about 5 sheets some take up to a minute to refresh and I have watched the code executing while the tables are still refreshing I guess its back to the drawing board
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|