ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Multiple Web Queries on background fail (https://www.excelbanter.com/excel-programming/293165-multiple-web-queries-background-fail.html)

poolboy

Multiple Web Queries on background fail
 
I have tried to use a macro to launch several webqueries to be run parallel
on the background (async), but I got "Invalid Web Query" error. Any ideas?
have anyone tried other methods than QueryTable?
I'm using Excel 2000.



Don Guillett[_4_]

Multiple Web Queries on background fail
 
As usual, post your macro for comments

--
Don Guillett
SalesAid Software

"poolboy" wrote in message
...
I have tried to use a macro to launch several webqueries to be run

parallel
on the background (async), but I got "Invalid Web Query" error. Any ideas?
have anyone tried other methods than QueryTable?
I'm using Excel 2000.





poolboy

Multiple Web Queries on background fail
 
Here is the macro:

Sub GetShareInfo()

For I = 0 To 10
StockCode = Sheets("Codes").Range("A1").Offset(I, 0).Value
With Sheets("Codes").QueryTables(I)
.Connection = "URL;http://finance.yahoo.com/q?s=" & StockCode
.WebSelectionType = xlSpecifiedTables
.WebTables = "27"
.Refresh BackgroundQuery:=True
End With
DoEvents
Next

End Sub


"poolboy" wrote in message
...
I have tried to use a macro to launch several webqueries to be run

parallel
on the background (async), but I got "Invalid Web Query" error. Any ideas?
have anyone tried other methods than QueryTable?
I'm using Excel 2000.






All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com