Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-29-2012, 12:29 AM
krishnaoptif krishnaoptif is offline Run a macro each minute? Windows XP Run a macro each minute? Office 2007
Novice
 
Join Date: May 2012
Posts: 23
krishnaoptif is on a distinguished road
Default

Hi,
Please use below code and call your macro in this...
Quote:
Option Explicit
Sub AutoRunAfter1Minute()

Dim i As Long
'i is minute...

For i = 1 To 5000

'Call your Macro or Your Code
MsgBox "Your Macro"



Application.Wait (Now + TimeValue("0:01:00"))

Next i

End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run a macro each minute? How to write the degree, minute second format in excel Jamal NUMAN Excel 12 07-09-2018 11:44 PM
How do I assign a macro to a button when the macro is in my personal workbook? foolios Excel Programming 2 07-27-2011 02:41 PM
Run a macro each minute? Upgraded from Outlook 2003 to 2010, after a minute, Outlook closes on its own Ckingfly Outlook 3 06-12-2011 07:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft