Delete Query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know this is going to sound stupid, but I am very novice...especially the
programming part.

I'm having trouble with an External Data Import, so am just going to delete
the query and create a macro that will import my data. Now not exactly sure
how to do the delete??? I found this on this forum, but don't really know
what to do with it???

ActiveSheet.QueryTables(1).Delete

Can anyone help me?
 
Hi

No need for code there.
In Named Ranges (Insert>Name>Define) find the one representing your query
table, and delete it.
Another way - select the whole query table on worksheet, and delete the
selected range.


Arvi Laanemets
 
Thanks so much Arvi, that worked!!!

Arvi Laanemets said:
Hi

No need for code there.
In Named Ranges (Insert>Name>Define) find the one representing your query
table, and delete it.
Another way - select the whole query table on worksheet, and delete the
selected range.


Arvi Laanemets
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top