Old newbie back again!
Questions regarding Excel Queries, Macros that use the downloaded data for other processing and timing:
Set the Stage:
I have 5 web Queries (from 3 different sites) that are refreshed each time I select a particular cell (C6 on Sheet1), press a macro button which takes me to a detail sheet (Sheet3). This action places that information from (C6) to cell (B2) on Sheet3. This cell change event activates the queries, refreshes the tables, and, in turn, activate a couple of macros and links that go to other sheets. One of my macros massages a table to make it acceptable for a link to another sheet.
One of the Problems:
It appears that this macro does the "massage" before the query is completed and the information from the web is not cleaned prior to linking to a chart. (As a matter of fact, I can see the change to the table and then the web data fill).
The Questions:
1) Is there a good method to "time" each of the queries sequentially and then "time" the separate macros so that the tables are "set" before the "real" activity takes place? (Charts, hyperlinks, etc.).
2) Also, there are several modules involved (9). Should the RELATED queries/macros all be in one module, place them in the order I want them to run and then set some sort of delay for each sub?
3) Another real problem right now is that it does take a bit for these guys to run.
All the queries work really well and all the macros work (except for the timing on one). Have even used the call routine ("Call FormulaM") at the end of the queries but all that does is screw it up. And have used a worksheet change event to call that macro, but, as I said above, it seems to run too late and seems to interfere with a couple of the queries.
By the way, the "FormulaM" routine is the one Dreamboat taught me earlier. A really nice feature. And I couldn't have gotten this far without her and all the teachings from XLGuru.
Questions regarding Excel Queries, Macros that use the downloaded data for other processing and timing:
Set the Stage:
I have 5 web Queries (from 3 different sites) that are refreshed each time I select a particular cell (C6 on Sheet1), press a macro button which takes me to a detail sheet (Sheet3). This action places that information from (C6) to cell (B2) on Sheet3. This cell change event activates the queries, refreshes the tables, and, in turn, activate a couple of macros and links that go to other sheets. One of my macros massages a table to make it acceptable for a link to another sheet.
One of the Problems:
It appears that this macro does the "massage" before the query is completed and the information from the web is not cleaned prior to linking to a chart. (As a matter of fact, I can see the change to the table and then the web data fill).
The Questions:
1) Is there a good method to "time" each of the queries sequentially and then "time" the separate macros so that the tables are "set" before the "real" activity takes place? (Charts, hyperlinks, etc.).
2) Also, there are several modules involved (9). Should the RELATED queries/macros all be in one module, place them in the order I want them to run and then set some sort of delay for each sub?
3) Another real problem right now is that it does take a bit for these guys to run.
All the queries work really well and all the macros work (except for the timing on one). Have even used the call routine ("Call FormulaM") at the end of the queries but all that does is screw it up. And have used a worksheet change event to call that macro, but, as I said above, it seems to run too late and seems to interfere with a couple of the queries.
By the way, the "FormulaM" routine is the one Dreamboat taught me earlier. A really nice feature. And I couldn't have gotten this far without her and all the teachings from XLGuru.