little Query or QueryTable problem...

L

Legacy 146544

Guest
Hi all,

-Using excel 2007-


To try somethnig out; I created an external link to a textfile (let's call it example.TAB) several times and deleted it several times. The first query name Excel created was "example", the second "example_1" and so on...


Now that I am done testing, I am trying to delete all built up query remains and finally connect to "example":


In doing this I have deleted all queries and range names so I could add the final query (of which the name must be "example"). To test if all QueryTables were deleted, I took a little macro from the internet to check the number of existing queries in the worksheet and this is now 0

by: MsgBox ActiveSheet.QueryTables.Count

BUT... still on creating the query, excel gives the notion "query name allready exists in the worksheet...."


Does anyone have a solution how to delete ALL remaining query information, names etc? Is there a difference between QueryTables and the query that I create when linking to a .TAB file?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
try going to the Data ribbon, Connections, and then Remove any connections that might be listed

hope that helps!
 
Upvote 0
Thx voor your post!

Didn't work, there were no connections...
it's the strangest thing!:S
 
Upvote 0
rats, just remembered I once had the same problem when I was trying to learn MS Query, and I never did resolve it
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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