April 2006
Beginner
1114 pages
98h 16m
English
If the data in a web query changes frequently, you may want to have Excel automatically update the information periodically. Since web queries already run asynchronously in the background, getting them to update periodically is a simple matter of setting a property:
Set qt = ws.QueryTables("Real-Time Quote")
qt.RefreshPeriod = 1Now, the query will update every minute. To turn off the background query, set the RefreshPeriod to 0 as shown here:
qt.RefreshPeriod = 0
Interestingly, the BackgroundQuery property can be False and you can still perform periodic queries. In that case, the Excel user interface pauses periodically whenever the query is being refreshed.
Read now
Unlock full access