+ Reply to Thread
Results 1 to 7 of 7

Running a macro at a specific time

  1. #1
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    Running a macro at a specific time

    I'm sure someone has asked this before but when I search I get an error message.


    I want to know if I can schedule a macro to run at specific times?
    If so would 6 requests at the same time slow excel down?
    Last edited by novice2430; 06-05-2009 at 09:03 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Running a macro at a specific time

    There are good examples in VBE Help for how to use the OnTime method.

    If so would 6 requests at the same time slow excel down?
    They will run sequentially, not at the same time. How long it takes depends entirely on the macros.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    Re: Running a macro at a specific time

    Finally was able to search...
    I found this:

    Please Login or Register  to view this content.

    I'm guessing 00:01:00 will make the macro run every minute?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Running a macro at a specific time

    It will schedule it to run once one minute from Now.

  5. #5
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    Re: Running a macro at a specific time

    So how can I get it to run every 7 minutes, from 9:30 am to 1:30 pm?

    I'm new to VBA.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Running a macro at a specific time

    The macro can use the same method to reschedule itself for 7 minutes later, each time it runs.

    You can search the forum for OnTime for many examples, or Google for many more.

  7. #7
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    Re: Running a macro at a specific time

    Thanks for the help, I'll search for that!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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