Microsoft Query

chipsworld

Board Regular
Joined
May 23, 2019
Messages
164
Office Version
  1. 365
Quick question that I hope has a simple answer.

How can I find the name of a Microsoft Query (not Power Query) in Excel. I need the name so that I can code the refresh action to a button.

Using Excel 365

Thanks!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
ISn't it this
1718177080016.png

list will appear here on right side of screen Click the properties button.

1718177106714.png
 
Upvote 0
Agreed, but there is nothing there. Lots of "Connections", but no Queries. If I do a Save As, it will save he query to my hard drive, not the workbook.

I am just trying to do a refresh command in VBA, but no matter what I put in the code for a name, it fails. Run-time error '-2147319765 (8002802b), Automation error, Element not found.
 
Upvote 0
Never mind...I found an alternative method using the sheet name and table name. Works perfectly.

If anyone knows why there would not be a Query name in the Queries list, I would be interested to know why it is blank.

I have never run into this issue before.
 
Upvote 0

Forum statistics

Threads
1,221,618
Messages
6,160,873
Members
451,674
Latest member
TJPsmt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top