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: 1
Default While refreshing data excel hangs because the certain page is temporary not accessibl


I'm now using excel to run webqueries. But often a site is not
accessible, so I get a “ time out” message and I have to click on the
"ok" button to continue the update from the other pages. So, when I'm
not in front of my computer excel will stick from that moment on until
I click "ok" to continue.

I want to know if there is a solution to enforce excel to continue
updating the next pages after one is not accessible.

While refreshing data excel hangs because the certain page is temporary
not accessible. At this stage I’ve to press the “ok - button” in the
then appeared messagebox with “unable to open http……………..cannot locate
the internet or proxy server” to run the next webquery.

My purpose:
- run webqueries
- refresh each minute
- automatically continue to run next webquery when a certain page is
not accessible

I was thinking about using : Application.DisplayAlerts = False or On
Error Resume Next
My attempts have failed. Can Anybody help???

Worksheets("Sheet1").Select 'x
Cells.Select
Selection.ClearContents
Range("A2").Select
With ActiveSheet.QueryTables.Add(Connection:= _

"URL;http://www.aex.nl/scripts/marktinfo/OptieKoersen.asp?taal=nl&Symbool=AEX&a=1&History=Y ES"
_
, Destination:=Range("A2"))
..Name = "OptieKoersen.asp?taal=nl&Symbool=AEX&a=1&History= YES"
..FieldNames = True
..RowNumbers = False
..FillAdjacentFormulas = False
..PreserveFormatting = True
..RefreshOnFileOpen = False
..BackgroundQuery = True
..RefreshStyle = xlInsertDeleteCells
..SavePassword = False
..SaveData = True
..AdjustColumnWidth = True
..RefreshPeriod = 0
..WebSelectionType = xlSpecifiedTables
..WebFormatting = xlWebFormattingNone
..WebTables = "3"
..WebPreFormattedTextToColumns = True
..WebConsecutiveDelimitersAsOne = True
..WebSingleBlockTextImport = False
..WebDisableDateRecognition = False
..WebDisableRedirections = False
..Refresh BackgroundQuery:=False
End With
Range("A2").Select

‘THE SECOND QUERY STARTS HERE


Worksheets("Sheet2").Select 'x
Sheets("Sheet2").Select 'selecteer sheet
Cells.Select
Selection.ClearContents
Range("A2").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.cboe.com/data/CFE/CFEmktstat.aspx",
Destination:=Range("A2"))
..Name = "CFEmktstat"
..FieldNames = True
..RowNumbers = False
..FillAdjacentFormulas = False
..PreserveFormatting = True
..RefreshOnFileOpen = False
..BackgroundQuery = True
..RefreshStyle = xlInsertDeleteCells
..SavePassword = False
..SaveData = True
..AdjustColumnWidth = True
..RefreshPeriod = 0
..WebSelectionType = xlSpecifiedTables
..WebFormatting = xlWebFormattingNone
..WebTables = "13"
..WebPreFormattedTextToColumns = True
..WebConsecutiveDelimitersAsOne = True
..WebSingleBlockTextImport = False
..WebDisableDateRecognition = False
..WebDisableRedirections = False
..Refresh BackgroundQuery:=False
End With
Range("A2").Select
End Sub
=============================================


--
maloo
------------------------------------------------------------------------
maloo's Profile: http://www.excelforum.com/member.php...o&userid=31847
View this thread: http://www.excelforum.com/showthread...hreadid=516311

 
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
EXCEL hangs when deleting large blocks of data Oxo Excel Discussion (Misc queries) 3 April 22nd 23 12:12 PM
Data is not refreshing-Excel 2003 Ronnie Excel Discussion (Misc queries) 1 November 3rd 09 09:09 PM
Excel 2007 hangs on any change to large range of data shoemaven Excel Discussion (Misc queries) 3 November 9th 07 08:57 PM
Excel new/edit External Data Query hangs Melissa Excel Discussion (Misc queries) 0 April 19th 06 07:44 PM
Refreshing Data In Excel / VBA [email protected] Excel Discussion (Misc queries) 0 October 13th 05 10:53 AM


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