#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Web Queries

Dear All

I have a spreadsheet with about 450 different but similar Web Queries
in it which
have been created with a VBA Macro. The Macro simply goes to about 450
different but similar websites and extracts Japanese real estate data
into a worksheet for me to analze later. However, once all the data is
copied to the worksheet, the Web Queries remain in the worksheet which
takes up too much added memory. Does anyone know how to remove all the
Web Queries once the Macro has stopped running?

I have tried CTRL-A and then right clicking to remove the Web Query but
it does not seem to remove all of them...

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Web Queries

One solution would be to have a single web query.
Update the .ConnectionString from a list, call .Refresh False and process
the resulting data.

This may be slower because you forcing all to be synchronous, but your 450
current queries may be using asynchronous download, depending how you have
it set up.
But you only have the single QueryTable set up.

Or, if you want keep all 450 queries, you can edit the Properties of each,
checking the "refresh data on file open" and 'remove external data from
worksheet before saving".
If you record these changes in macro for a query, you can then apply them to
all queries in code.

NickHK

"Pelham" wrote in message
oups.com...
Dear All

I have a spreadsheet with about 450 different but similar Web Queries
in it which
have been created with a VBA Macro. The Macro simply goes to about 450
different but similar websites and extracts Japanese real estate data
into a worksheet for me to analze later. However, once all the data is
copied to the worksheet, the Web Queries remain in the worksheet which
takes up too much added memory. Does anyone know how to remove all the
Web Queries once the Macro has stopped running?

I have tried CTRL-A and then right clicking to remove the Web Query but
it does not seem to remove all of them...



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
Help with Queries MLK Excel Worksheet Functions 5 May 31st 08 05:18 PM
Queries LostNFound Excel Discussion (Misc queries) 3 February 6th 07 12:16 PM
Web Queries Gary Smith Excel Discussion (Misc queries) 0 September 14th 05 07:58 PM
Queries Bean123r Excel Discussion (Misc queries) 0 June 17th 05 12:15 AM
web queries Astraweb.com Excel Programming 2 September 26th 04 06:02 PM


All times are GMT +1. The time now is 02:10 PM.

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

About Us

"It's about Microsoft Excel"