+ Reply to Thread
Results 1 to 5 of 5

Multiple Timers, Multiple Events

  1. #1
    Registered User
    Join Date
    07-30-2020
    Location
    Charleston, SC
    MS-Off Ver
    Office 365
    Posts
    30

    Question Multiple Timers, Multiple Events

    I am well experienced in Excel, but am starting my first real VBA project. I have typically found what I've needed in the past and copied and pasted it, but I know that won't be the case for this project. I have researched event handlers and basic countdown timers, but I haven't figured out how to piece this idea together.

    Basically, I need a separate hour long timer in each row that starts when something is entered into that row's column B. With just a basic timer and event handler, I'm able to call a start_timer when something is entered into B:B, but that only works with one row. I have thought of running separate modules per row (start_timerF, start_timerG, etc.) but that would be dozens of modules running and I doubt that's the best way to move forward. I'm not necessarily hoping for a copy paste answer, though that would be incredible. I'm just hoping someone here knows of the right path forward for me to figure this out. I appreciate your time and any help you can provide!
    Last edited by singinwes; 08-17-2020 at 12:10 PM. Reason: Solved

  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: Multiple Timers, Multiple Events

    Hi there,

    Take a look at the attached workbook and see if it gets you moving in the right direction. It uses the following code in the VBA CodeModule for the worksheet:

    Please Login or Register  to view this content.

    The highlighted values may be altered to suit your requirements, but note that the following line:

    Please Login or Register  to view this content.
    assumes that the "Start" and "Elapsed" columns are adjacent to each other.


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

    Regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-30-2020
    Location
    Charleston, SC
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Multiple Timers, Multiple Events

    This is super helpful and we can make this work swimmingly, thank you! I'm wondering if it's possible to make each line stop when it hits an hour. Everything I have thought of would stop all of them when the first one hits an hour. Any insights into accomplishing this?

  4. #4
    Registered User
    Join Date
    07-30-2020
    Location
    Charleston, SC
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Multiple Timers, Multiple Events

    I changed Const sFORMULATE to "=IF(NOW()-INT(NOW())-RC[-1]<0.04167,NOW()-INT(NOW())-RC[-1],0.04167)" and was able to have each line item stop as an hour. This made our project exactly as we had hoped, thank you for your help!

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

    Re: Multiple Timers, Multiple Events

    Hi again,

    Sorry about the delay in replying - other projects got in the way of the forum!

    Many thanks for all of your feedback and also for the recent Reputation increase - much appreciated!

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

+ 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. Excel VBA - Multiple procedures in 1 sheet to set up multiple timers
    By flyerspuck100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2018, 01:04 PM
  2. multiple timers
    By kadlaw in forum Excel General
    Replies: 2
    Last Post: 11-14-2017, 04:56 AM
  3. Multiple timers
    By OillyBob55 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-17-2017, 04:38 PM
  4. Multiple Countdown timers.
    By dawidski in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2013, 11:42 PM
  5. Multiple Timers within EXcel
    By Janto724 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 04-26-2013, 09:07 AM
  6. Setup Multiple Timers
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2010, 04:38 PM
  7. Running multiple timers
    By tropy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-17-2006, 09:44 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