LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Repeated web queries eventual return error 1004

I have a Excel 2007 macro which scrapes a multi-page site. The section of the
site I am querying has 302 pages with 10 items of interest on each page. My
macro alters the ?start=xxxxx" parameter on the end of the URL to advance
through the pages.

By page 50 I was starting to get the occasional error 1004. If I waited a
few seconds and retried the qt.refresh, the refresh would work. When this
became painful, I added code around the qt.refresh to try up to 10 times,
with a two-second delay.

My query has now retrieved 250 pages, but has failed again. In this latest
failure, it appears that Excel has not created the querytable at all during
the last pass through the loop.

If I create the web query manually for page 1, I can see the web site in the
wizard. When I click Import, it fails with Error 1004.

If I waited 10 minutes it would refresh.

Any idea what is going on?
 
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
why am i getting an error 1004?? please help SAM SEBAIHI Excel Discussion (Misc queries) 2 February 16th 07 02:21 AM
error 1004 (VBA) Harlan Grove Excel Discussion (Misc queries) 0 May 15th 06 07:33 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Runtime error '1004' General ODBC error star_lucas New Users to Excel 0 August 29th 05 04:09 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


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