I am writing a VBA macro for Excel that connects to my SQL database, collects some data, returns it to the spreadsheet, and then formats it. The problem i am encountering is that the macro proceeds with the instructions while the SQL query is still loading data. I have attempted to pause the macro with an "Application.OnTime" but it is not working too well. I have also tried inputbox or msgbox, but those both seem to pause the query as well as the macro. Any ideas besides using two different macros?
2006-07-18
23:51:19
·
4 answers
·
asked by
Scott S
2
in
Computers & Internet
➔ Programming & Design
Please don't give any more answers like JJ....that is terrible.
2006-07-19
00:02:04 ·
update #1