Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default How to deactivate the external queries that are used to import dat

Josh,
This will remove all the query tables in the WB. I assume that is what you
mean and understand you will not be able to refresh data afterwards:

Dim WS As Worksheet
Dim QT As QueryTable

For Each WS In ThisWorkbook.Worksheets
For Each QT In WS.QueryTables
QT.Delete
Next
Next

NickHK

"Josh" wrote in message
...
Currently i am working on a couple of Excel projects. These projects

involve
an extreme amount of data importing from various access programs I have
written. In one of my excel programs i have around 42 Sheets, and 24 of

those
sheets each look at 10 external queries from access. And the current

problem
i am having is that when I no longer want the data to be refreshed but the
current data to stay on the excel sheet I have to go to "Data Range
Properties" and click the check mark off next to "Save query defintion".

As
you can tell i have do this over 240 times for each Excel work book. Is

there
currently a faster way to do this on Excel 2003?
Thank you for you help,
Josh



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
Use cell references in external queries johnb49 Excel Worksheet Functions 1 May 18th 08 01:25 AM
Help with External Data Queries Mike Punko Excel Programming 0 October 26th 05 09:19 PM
External Queries - Excel 2000 MK Excel Programming 0 September 23rd 04 08:55 PM
Edit Get External Data Queries Neil[_14_] Excel Programming 3 May 18th 04 02:20 PM
External Data Queries and Cookies Roger[_15_] Excel Programming 1 January 24th 04 08:13 PM


All times are GMT +1. The time now is 05:01 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"