Microsoft Query

chipsworld

Board Regular
Joined
May 23, 2019
Messages
169
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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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