Can't update the data from internet while running macro

W

wilson

I try to get the data from internet , and want to save it from time to
time , my work sheet is set to update the data when re-opening. But
when I use macro to open it , it will not update the date . How can I
solve this problem ??:confused:
 
T

Tom Ogilvy

You need to set the Backgroundquery property to false - then your macro will
wait for the refresh to complete.

From help for Refresh method:

expression.Refresh(BackgroundQuery)
 

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

Top