Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i am trying to refresh a query every 10 min.
using the .RefreshPeriod = 10 in the query loop doesn't redue all of the macro formatting that follows query so i was wondering if refresh could be used in a sub to run the main macro. something like this sub refresh() Application.Run "'TEST.XLS'!GetData" ..RefreshPeriod = 10 End Sub or how would i automate running the macro. this is the query loop in main macro Workbooks.Add With ActiveSheet.QueryTables.Add(Connection:=connectURL , Destination:=Range("A1")) .BackgroundQuery = True .TablesOnlyFromHTML = True .PostText = "TICKER=" & Symbol .refresh BackgroundQuery:=False 'DL text data .RefreshPeriod = False 'no refresh .SaveData = True End With thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I 'Enable Automatic Refresh' for Query Refresh by default | Setting up and Configuration of Excel | |||
Query parameter "refresh when value changes" doesn't refresh - why | Excel Discussion (Misc queries) | |||
Query Refresh-Enable Automatic Refresh Dialogue Box | Excel Discussion (Misc queries) | |||
Excel does not close from VB!! (when i refresh Refresh query with BackgroundQuery:=False) | Excel Programming | |||
Web Query fail to Refresh All but individual refresh is ok | Excel Programming |