waiting for data refresh before continuing VBA sub

  • Thread starter Thread starter David Macqueen
  • Start date Start date
D

David Macqueen

I want to open a workbook, update the data from Access
using MS Query, then saveas the workbook with a new name.
Excel wants to run the sub without waiting for the
refreshed data.

Is there any way to get the VBA to recognise that the
refresh has finished and then continue with sub?
 
Set the backgroundQuery property to false

This should make your macro wait.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top