Excel - How do I cancel an XLQUERY?
Asked By Bar
13-Apr-07 09:16 AM
I am trying to open a file that was created by another user no longer with
the company. When I open the file I get the following message:
each time "[file name]worksheet name with in the file" is opened.
This comes up each time I open the file and I want to get rid of it. How do
I do that?
Richar replied...

I’m assuming you get this error when you open the Excel file.
There are two files. The Excel file and the Query file. The Query file
extension is .dqy.
The Query file is by default stored in a hidden file on the computer where
the Query was originally written. The path is:
C:\Documents and Settings\richard.brown\Application Data\Microsoft\Queries
In my case richard.brown above is my name and refers to my computer profile.
You would put your profile name there.
If the Excel file was emailed to you or otherwise copied to our computer
then you don’t have the Query file and therefore can’t cancel or otherwise
use the Query file.
Even if both files were put on your computer you still couldn’t as the path
is pointing to the original creators path.
If you still need the Query file then you must get it from its hiding place.
If on the other hand you just want to cancel the Query from running the only
way I would know how to do this is to create a new profile on your computer
and recreate the same path as the original Query and then create a Query with
the same name and then you can cancel the Query.
There must be a way to easily change the path but I don’t know how.
Good luck.
Richard
Nick Hodge replied...
Richard
This is the MSQuery add-in from xl97. I would try first of all,if you have
a version of xl after 97 re-running install and doing a full NOT typical
install
If not, check here
http://support.microsoft.com/kb/173321
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/
FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk
Microsoft.Office.Interop.Excel myexcel = new EXCEL.Application() Excel I keep getting the error message when trying to execute Microsoft.Office.Interop.Excel.Application myexcel = new Microsoft.Office.Interop.Excel.Application() In the bigining the error message was Retrieving the COM class factory for component with
How to code macro to close Excel Application? Excel Does anyone have any suggestions how to code macro to close Excel Application? I have a macro coding, and would like to add code to close Excel Application at the end of macro. Does anyone have any suggestions? Thanks in advance for any suggestions Eric Excel Programming Discussions EricTryApplication.DisplayAlerts (1) Workbooks (1) Excel (1) Application.DisplayAlerts (1) Macro (1) BenitoBarcelona
appXL = CreateObject("Excel.Application") Excel Hi Both Excel 2003 and Excel 2007 are installed on a subset of machines How to control the object version open when this script line is executed ? Set appXL = CreateObject("Excel.Application") The test on two machines shows that it is the xcel 2003 (version 11.0 opened, the same one you get if you doubleclick on an .xls file while neither Excel 2k3 nor Excel 2k7 is opened. . . Does it mean there is somewhere a variable that
Excel related Excel when i opening excel application, excel with opening as default sheet2 page.whereas the default sheet1 should be open.please suggest. Excel Charting Discussions Microsoft Excel (1) Excel (1) Thiyagu (1) Page.whereas (1) Open.please (1) Sheet2 (1) You may have another
excel does not opens on IIS Excel I have a simple c# application Excel.Application excelApp = new Excel.Application(); excelApp.Visible = true; string workbookPath = " / book.xls"; excelApp.Application.Workbooks.Open(workbookPath, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing