My EXCEL macro contains some queries that retrieve data from an ORACLE database and then do processing of that data. With debugging it is apparent that the macro tries to do the post-query processing of data before the data has actually been returned.

Is there a way not requiring human intervention to make the macro wait for the data? It works just fine if I add a breakpoint in the macro just after the query, but would prefer not having the break.

Thanks!