+ Reply to Thread
Results 1 to 4 of 4

Automatic Actions Based off Computer Time Stamp

  1. #1
    Registered User
    Join Date
    06-30-2015
    Location
    Lebanon, Pa
    MS-Off Ver
    2010
    Posts
    5

    Automatic Actions Based off Computer Time Stamp

    Is there a way to code a macro to automatically do something based off the computers date/time stamp. Right now I have macro button that copies sheets clears data, renames sheets but to make it work I have to click the button. I am wondering if I can code it to run base on the computer date and time stamp so every sunday morning it runs? We never shut the computer off and excel is always running. Does anything know if this would be possible?

    I am just learning VBA and of course pushing the limits I'm sure.

    Thanks.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Automatic Actions Based off Computer Time Stamp

    Heres some code on timer... kinda advanced tho.

    http://stackoverflow.com/questions/1...m-in-excel-vba

  3. #3
    Registered User
    Join Date
    06-30-2015
    Location
    Lebanon, Pa
    MS-Off Ver
    2010
    Posts
    5

    Re: Automatic Actions Based off Computer Time Stamp

    Ranman,
    Thanks, Now I can follow it, but can you explain it at all? I put the macro program, or the events I want to run in the area Sub OnTimer()
    And basically this is always running in the background counting up by 1 second until a time is achieved. But what triggers it to run? It looks like nextTriggerTime, but not sure what it matches up against and where that variable is set.

    Any ideas.

    If you can answer those few things I think that would be everything I needed. Thanks again.

    Sorry if these seem basic. I am still learning this stuff, all self taught from trial and error.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Automatic Actions Based off Computer Time Stamp

    Hi veedubnut115,

    See the attached file which is a comprehensive scheduler, which you may be able to use with your application.

    Please Login or Register  to view this content.
    Lewis

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Computer time stamp -> excel time stamp
    By j.petrut in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2014, 05:49 PM
  2. [SOLVED] Automatic Time Stamp when data entered into a cell
    By Shaliza Riley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 12:15 PM
  3. Insert automatic date and time stamp in a cell if any cell of the same row is edited
    By kdhanerawala in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-12-2012, 06:18 PM
  4. Automatic Time Stamp
    By Alexandria345 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 02:51 PM
  5. Automatic date and time stamp when another cell filled
    By texas tornado in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2012, 08:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1