1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

PQ Queries won't refresh via VBA or clicking, but will refresh in the table - any ideas?

Our take

It sounds like you're encountering a frustrating issue with your Power Query connections in Excel. While your VBA script successfully refreshes the "Active Proposals" query and the "Changed This Month" query, the "Funded This Month" and "Asked This Month" queries remain unresponsive, despite not generating any errors. Since you can refresh these tables manually, it suggests a potential misconfiguration within the queries themselves or their connection settings. Let's explore possible solutions to ensure all queries refresh seamlessly, enhancing your data management experience.

My workbook has 4 queries:

Active Proposals is a SQL pull from our db

Then there are three queries that reference that list, for Funded/Asked/Changed this month.

I have a VBA script that refreshes all four of them, literally just four lines of connections.refresh.

Sub RefreshProposalLists() ThisWorkbook.Connections("Query - ActiveProposals").Refresh ThisWorkbook.Connections("Query - Funded This Month").Refresh ThisWorkbook.Connections("Query - Asked This Month").Refresh ThisWorkbook.Connections("Query - Changed This Month").Refresh End Sub 

Two of them work, and two don't. Like, when I F8 through the sub, Active proposals refreshes, Funded and Asked do nothing (but also don't error), and then Changed refreshes.

In Queries & Connections, they also don't respond when I right click on them and choose Refresh, or click on the Refresh icon.

But here's the kicker: if I go to the Funded or Asked tables and right click and choose refresh , they refresh like normal.

Any idea what might be going on here?

submitted by /u/pookypocky
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Tagged with

#Excel alternatives for data analysis#rows.com#natural language processing for spreadsheets#generative AI for data analysis#Excel compatibility#no-code spreadsheet solutions#Excel alternatives#PQ Queries#VBA#refresh#Active Proposals#SQL#connections.refresh#Workbook#queries#Funded#Asked#Changed#Tables#Queries & Connections