Hi everybody:
I’m sure there must be an easy way to do this, but I can’t find it in the “help.”
I have inherited an Excel workbook that contains pivot tables and query tables. I want to refresh them via code to get rid of the annoying “Query Refresh” Excel pop-up that appears each time the workbook is opened. So, I wrote a couple of little procedures to enumerate all the querytables and pivottables in the workbook and set their manual update property and backgroundquery property to false. Fine. But I’m still seeing the “Query Refresh” Excel pop-up after running the code, saving the workbook, and reopening it. So, I assume there must be some other queries somewhere in the workbook that are refreshing.
Can someone tell me how to enumerate all the queries in a workbook and set them so they don’t refresh on file open?
Thank you, in advance, for your help.