Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Delete Query

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Delete Query

Hi

No need for code there.
In Named Ranges (InsertNameDefine) 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


"Tasha" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Delete Query

Thanks so much Arvi, that worked!!!

"Arvi Laanemets" wrote:

Hi

No need for code there.
In Named Ranges (InsertNameDefine) 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


"Tasha" wrote in message
...
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?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DELETE ROWS BY USING A IF/THEN QUERY CHARI Excel Worksheet Functions 2 June 1st 06 06:46 PM
delete query JT Excel Programming 0 March 15th 06 04:58 PM
How to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
delete a query in Excel Terri Excel Discussion (Misc queries) 1 December 20th 04 06:20 PM
How do I delete a query off a sheet??? vpr80[_2_] Excel Programming 0 November 17th 04 07:57 PM


All times are GMT +1. The time now is 04:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"