Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need help with a loop. I have a macro I need to repeat every 30 seconds.
The macro refreshs a web-query. I can manually do it but I need it to be automated if possible. My knowledge of VB is very limited. Thanks. Sub Refresh() ' ' Refresh Macro ' Macro recorded 1/10/2008 by HP Authorized Customer ' ' Keyboard Shortcut: Ctrl+x ' Selection.QueryTable.Refresh BackgroundQuery:=False End Sub |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Follow this link:
http://www.cpearson.com/excel/OnTime.aspx for information on various timers and functions. Hope this helps. Pete On Jan 10, 5:22*pm, Mike wrote: I need help with a loop. I have a macro I need to repeat every 30 seconds. * The macro refreshs a web-query. I can manually do it but I need it to be automated if possible. My knowledge of VB is very limited. Thanks. Sub Refresh() ' ' Refresh Macro ' Macro recorded 1/10/2008 by HP Authorized Customer ' ' Keyboard Shortcut: Ctrl+x ' * * Selection.QueryTable.Refresh BackgroundQuery:=False End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Loop a macro in Excel | New Users to Excel | |||
Excel with game is stuck in a loop | Excel Discussion (Misc queries) | |||
How can I setup an Excel Macro to loop? | Excel Discussion (Misc queries) | |||
Excel Macro loop problems | Excel Discussion (Misc queries) | |||
VB for excel, how do I loop through code | Excel Discussion (Misc queries) |