I have an xlsm file with a macro that on open, it will launch a Master xlsx of my choice, refresh all the Power Queries (20+ queries), save the Master file and quit excel. The macro file is 20k and the master file is 2MB.
If I open the xlsm manually, the queries all refresh as normal in under 30 seconds. However if I use task scheduler or any windows automation software to open that xlsm, excel goes non responsive and i have to force quit.
Anyone experience anything like this before? This same code works on all other PQ files task scheduler refreshes and those range from 10MB-20MB, however have far less queries to refresh.
Here is the VBA code I'm using.
Bookmarks