#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Loop in Excel

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Loop in Excel

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Loop a macro in Excel flecky New Users to Excel 4 June 12th 07 02:10 PM
Excel with game is stuck in a loop [email protected] Excel Discussion (Misc queries) 2 December 19th 06 08:11 PM
How can I setup an Excel Macro to loop? ExcelNovice Excel Discussion (Misc queries) 3 March 28th 06 10:12 PM
Excel Macro loop problems mibsaweiss Excel Discussion (Misc queries) 0 March 16th 06 04:45 PM
VB for excel, how do I loop through code steve hobden via OfficeKB.com Excel Discussion (Misc queries) 2 June 9th 05 01:59 PM


All times are GMT +1. The time now is 08:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"