Hi,
I have a problem with updating my workbook via refresh all button.
I think the problem is in a large amount of SQL queries in a workbook.
Is it possible to write a VBA macro for updating data connection one by one?
Thank you!
John.
Hi,
I have a problem with updating my workbook via refresh all button.
I think the problem is in a large amount of SQL queries in a workbook.
Is it possible to write a VBA macro for updating data connection one by one?
Thank you!
John.
The code to refresh a specific connection is:
If you go to Data -> Connections and click on a connection and then click on properties, one of the properties is to allow background refresh. If you turn this off for all the connections, they will be run sequentially. I don't know if that will help. I generally turn off background refresh so my vba stops and waits for the connection to finish updating before I do things like refresh pivot tables.Please Login or Register to view this content.
One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.
A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks