Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm on hold waiting for Microsoft's $45 support for this problem.
Does anybody have any opinion as to whether this will turn out to be: 1. an undocumented bug 2. a documented bug 3. my fault syntatically 4. lack of memory on this computer 5. Yahoo Finance's fault 6. other Regards, Brian "Brian in London" wrote: Why does "On Error" seem to make no difference? Once every few hundred web queries will fail because of some timeout or webpage not being available but the "On Error" doesn't seem to help. The error is always on the last line: ".Refresh BackgroundQuery:= False". Any insight would be appreciated. Regards, Brian code excerpt........................................... ............................... On Error GoTo query3error With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://finance.yahoo.com/q?s=" & ticker, Destination:=Range("A1")) .Name = "q?s=" & ticker .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .BackgroundQuery = False ' was True .RefreshStyle = xlOverwriteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .WebSelectionType = xlSpecifiedTables .WebFormatting = xlWebFormattingNone .webtables = webtables(trials - 1) ' was "16" .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = True ' was False .Refresh BackgroundQuery:=False End With -- Brian -- Brian |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
They said they can't help. Fcuk!!!! Now they're sending me over to
"professional support". Brian -- Brian "Brian in London" wrote: I'm on hold waiting for Microsoft's $45 support for this problem. Does anybody have any opinion as to whether this will turn out to be: 1. an undocumented bug 2. a documented bug 3. my fault syntatically 4. lack of memory on this computer 5. Yahoo Finance's fault 6. other Regards, Brian "Brian in London" wrote: Why does "On Error" seem to make no difference? Once every few hundred web queries will fail because of some timeout or webpage not being available but the "On Error" doesn't seem to help. The error is always on the last line: ".Refresh BackgroundQuery:= False". Any insight would be appreciated. Regards, Brian code excerpt........................................... ............................... On Error GoTo query3error With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://finance.yahoo.com/q?s=" & ticker, Destination:=Range("A1")) .Name = "q?s=" & ticker .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .BackgroundQuery = False ' was True .RefreshStyle = xlOverwriteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .WebSelectionType = xlSpecifiedTables .WebFormatting = xlWebFormattingNone .webtables = webtables(trials - 1) ' was "16" .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = True ' was False .Refresh BackgroundQuery:=False End With -- Brian -- Brian |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I correct Query error "Invalid bracketing of name 'xls.'." | Excel Discussion (Misc queries) | |||
MSN stock quotes - Error message "problem displaying attributes" | Excel Discussion (Misc queries) | |||
"Invalid Web Query" error on opening a 2003 worksheet | Excel Discussion (Misc queries) | |||
What is Error "Method "Paste" of object "_Worksheet" failed? | Excel Programming | |||
Problem with "On error resume next" with "custom VLookup" | Excel Programming |