Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 05-29-2012, 02:18 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Run a macro each minute? Windows 7 32bit Run a macro each minute? Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi,

The intention of Krishna's reply was to outline one potential approach and that you adapt it to suit your needs. Where Krishna's code shows a message box you should change that to call your macro instead.

That aside, I think you should look into using Timers. Have a look at the Application.OnTime method in your VBA helpfile. For further information and examples you can read this excellent article by Chip Pearson:
http://www.cpearson.com/excel/OnTime.aspx

For now I recommend that you avoid using the Windows Timers: unless they are used with due caution and care they may cause Excel to crash under certain circumstances.

Good luck!
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 01:33 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