LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Web Query Refresh Issues

I'm using Excel 2002 SP3...

I wrote a macro over a year ago that performs several web queries and
copies/pastes data between each new query. Last year, after writing the
macro, the program would nicely zip through all of the queries and everything
would be great. The last time I ran the macro successfully was in October
2004.

In April 2005, I ran the macro again. The URLs in question are still exactly
the same. The problem now is the run-time error '1004', "unable to open" the
URL. If I hit "Debug", then run it again to continue, it might successfully
refresh that web query and move on. It's hit or miss.

My theory is that the web query refresh method is not being patient enough
for data. I can immediately open up an IE window and load the same pages
easily. I'm wondering if the refresh method is not waiting long enough for
the data to load. Is there a way to set a parameter to tell it to wait longer
for the URL to open?

Alternately, I've attempted to write an error-handling mechanism, but the
best I can do is to get it to refresh one extra time. After that, it just
crashes. I know I'm flirting with an infinite loop, but it would be nice to
get the query to keep trying until it finds the data. I know it's out there!

Any feedback would be greatly appreciated.

Thanks,
Hfly
 
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
How can I 'Enable Automatic Refresh' for Query Refresh by default Anand Deshpande Setting up and Configuration of Excel 0 December 10th 06 04:47 AM
Query Refresh-Enable Automatic Refresh Dialogue Box Terri Excel Discussion (Misc queries) 0 May 6th 05 08:21 PM
Timing of automatic query refresh and macro pivot table refresh dutty Excel Programming 2 December 1st 04 07:19 PM
Excel does not close from VB!! (when i refresh Refresh query with BackgroundQuery:=False) Anant[_2_] Excel Programming 1 August 6th 03 04:22 AM
Web Query fail to Refresh All but individual refresh is ok Karyn Mak Excel Programming 2 July 17th 03 09:30 AM


All times are GMT +1. The time now is 08:02 AM.

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"