+ Reply to Thread
Results 1 to 2 of 2

run a macro every minute starting at a specific time and stop at a specific time

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Canada
    MS-Off Ver
    ms365
    Posts
    79

    run a macro every minute starting at a specific time and stop at a specific time

    Hi there,

    Is there a way to create a loop or time interval function that would allow me to run a macro starting at 6am and keep on running every minute and then stopping at 6pm. thank you

    regards,

    SN

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: run a macro every minute starting at a specific time and stop at a specific time

    Hi there,

    Take a look at the attached workbook and see if it does what you need. It uses the following code in the "ThisWorkbook" VBA CodeModule:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

+ 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. [SOLVED] Moving down one cell at a time starting at a specific cell
    By Omega71 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-03-2023, 08:19 AM
  2. Starting Week number by specific time
    By naiconn in forum Excel General
    Replies: 5
    Last Post: 12-03-2014, 08:37 AM
  3. [SOLVED] Timed macro (say "Mega"), to run at specific time intervals and How to stop it ?
    By omega0010 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-01-2014, 11:35 PM
  4. [SOLVED] Copy a specific range to another sheet adding all the workdays for a specific time period
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-05-2014, 02:19 AM
  5. [SOLVED] Code to run a Macro on a specific day of the week at a specific time.
    By mjfox52610 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 11:40 PM
  6. [SOLVED] Show the date and time in a specific cell of last time we run a macro
    By dragon_m0nsta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2012, 04:49 AM
  7. Replies: 1
    Last Post: 02-23-2012, 09:01 AM

Tags for this Thread

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