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?
Thanks again all.PHP Code:
Sub DeleteQueryDefinedNames()
Dim n As Name
For Each n In ActiveWorkbook.Names
If n.Visible = False And InStr(1, n.Name, "QUERY", _
vbTextCompare) > 0 And InStr(1, n.Name, _
"Query_from", vbTextCompare) = 0 Then
n.Delete
End If
Next
End Sub
Matt
Bookmarks