Hi
with open workbook, all queries table will refresh
how can I add vba code in workbook open, thats say call macro1 after the refresh end
Thanks
Hi
with open workbook, all queries table will refresh
how can I add vba code in workbook open, thats say call macro1 after the refresh end
Thanks
You do not need VBA to do this. Go to Data > Queries and Connections. Right click on query. In the properties, click OFF Enable Background Refresh. The queries will have to complete before the rest of the code executes.
I'm not quite sure it this works if you have Refresh Query on Open. If that doesn't work and you have this engaged, click it off and write some On Open code for the workbook that looks like:
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