+ Reply to Thread
Results 1 to 6 of 6

How do I get rid of XLQUERY?

  1. #1
    Registered User
    Join Date
    07-09-2008
    Location
    Brighton, UK
    Posts
    79

    How do I get rid of XLQUERY?

    Hi again,

    Every time I open up a file I get this error message...

    Cannot find XLQUERY.XLA!Register.DClick etc.

    The file retrieves data to the workbook, so I'm geussing thats the problem. But I have this code which is supposed to fix it. I've put it in my workbook but it aint working. Where do I put it? and is it correct?

    PHP Code: 
    Sub DeleteQueryDefinedNames()
       
    Dim n As Name
       
    For Each n In ActiveWorkbook.Names
          
    If n.Visible False And InStr(1n.Name"QUERY"_
                vbTextCompare
    ) > And InStr(1n.Name_
                
    "Query_from"vbTextCompare) = 0 Then
             n
    .Delete
          End 
    If
       
    Next
    End Sub 
    Thanks again all.

    Matt

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Barksmith,

    The .xla extension indicates the workbook is an add-in. You can disable it by manually by going to Tools > Add_Ins... and clearing the check box next the workbook's name.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    07-09-2008
    Location
    Brighton, UK
    Posts
    79
    Hi Leith Ross,

    The problem is though...once I've run the file, about 50 different people use it each day, and I can't expect them all to disable this add-in (mainly because I'll end up having to go round to every PC and do it)

    If I disabled it on my PC would it be fine on others or would they have to disable it too? Is their a different fix? A colleague gave me that code and also put it into a different file, for that file it works but I can't find where he has put the code. Strange.

    Cheers

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello barksmith,

    Not sure if I still have the code for that. Give me a couple of minutes to write the macro.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    07-09-2008
    Location
    Brighton, UK
    Posts
    79
    awesome, thank you!

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello barksmith,

    Here is the macro. Change the AddIn name from "Solver.xla" to your AddIn's name.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1