Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-14-2017, 08:47 AM
Logit Logit is offline Automatic Update for Excel Spreadsheet Windows 10 Automatic Update for Excel Spreadsheet Office 2007
Expert
 
Join Date: Jan 2017
Posts: 591
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Code:
Option Explicit

Dim TimeToRun

'Sub auto_open()
'    Call ScheduleclrCol                        'uncomment this for code to auto run when sheet is opened
'End Sub

Sub ScheduleclrCol()
    TimeToRun = Now + TimeValue("00:01:00")     '<----- adjust time to fire here  HH:MM:SS
    Application.OnTime TimeToRun, "runmycode"
End Sub

Sub runmycode()

        
        'Your code here   <--- place your code here to be run once per minute
   

Call ScheduleclrCol
End Sub

'Sub auto_close()                               'uncomment this for code to auto stop when sheet is closed
'    On Error Resume Next
'    Application.OnTime TimeToRun, "clrCol, , False"
'End Sub

Sub manual_stop()                               'button click for stop (Manual Stop)
    On Error Resume Next
    Application.OnTime TimeToRun, "clrCol", , False
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Update for Excel Spreadsheet Stop Automatic Date-Update janetb Word 10 11-10-2016 12:05 AM
Automatic Form update rlmoss44 Word VBA 6 12-03-2015 09:27 AM
help needed for automatic update of footer sanju71821 Word 7 07-01-2015 08:18 AM
How can I automatically update my spreadsheet with report generated from Access shilabrow Excel 5 05-18-2014 03:59 PM
Automatic Update for Excel Spreadsheet Automatic Update of links has been disabled: Kal Excel 1 03-21-2010 09:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:37 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