+ Reply to Thread
Results 1 to 6 of 6

Problem adding more countdown timers

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Problem adding more countdown timers

    Hi I work in a school for the exams officer and am trying to create a spreadsheet that can be displayed at the front of the exam hall to advise the students of the start and finish times for the exams as well as having a countdown timer to show them how long they have left.

    The spreadsheet should have the ability to have up to 5 separate examinations with countdown timers running simultaneously. I have created buttons and code for the first exam and could use this countdown timer for any other exams starting at the same time. However, the problem is that the exams do not all start at the same time - for example some of the languages papers are short and run consecutively during a single exam session but need to have individual timers. Also as soon as I type anything else the counter stops which I also do not want to happen.

    I have attached my efforts to date - as you can see there are two sheets a front sheet which is what is displayed and a sheet that contains the examination details used to populate the various fields such as duration. There are three buttons at the end of the first exam Start, Stop and Reset. These all seem to work fine as long as you do not touch the sheet after starting the timer.

    The code I currently have is as follows
    Please Login or Register  to view this content.
    I also have the following on the sheet code
    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Problem adding more countdown timers

    I haven't looked at your code, but I think you are taking the wrong approach. You probably only need one timer. I would use the following algorithm:
    1. Start the time of day timer either from Workbook_Open() or manually through a command button.
    2. 'Click' on a command button for Exam 1. Associated with Exam 1 is an Exam duration (source unknown). Save the date and time when the command button was clicked.
    3. Repeat step 2 for all other exams whenever they start.
    4. In the timer event handler code, you perform the calculations and display the elapsed time and time remaining for each Exam as required.

    The file from Post number 2 in the following link takes a similar approach to a different problem.
    http://www.excelforum.com/excel-prog...ain-value.html

    I'm very busy the next couple of days, but if you still need help on Friday, I can probably come up with a solution by Friday afternoon.

    Lewis

  3. #3
    Registered User
    Join Date
    03-04-2014
    Location
    wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Problem adding more countdown timers

    Hi Lewis,

    Thanks for answering this.

    The exam duration is automatically brought into the front sheet as a Vlookup from an examination details sheet with the entry generated by the subject/paper chosen from a drop down list on the front page.

    The exam invigilator would then press the start button for that exam when it commences. There may be a number or exams starting at the same time, but for different durations, however this is not a problem as the current set up allows the user to select up to 5 different subjects/papers and the durations for each are individually generated.

    My problem is if the invigilator then want to start another subject/paper at a later time ie when the first exam(s) have already started. As it currently stands, this is the concept I am having trouble with. Whilst I think this may be what you have solved in your reply, sorry but I don't grasp what it is you are suggesting I do to resolve it. Sorry to be slow on the uptake, but I think my brain is getting tired and becoming "reptilian" in functionality ie seriously lacking!

    Thanks again for your time and trouble in replying.

    Kind regards
    John

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

    Re: Problem adding more countdown timers

    Hi John,

    Please take the attached file for a test drive. I think it implements what you want using one timer, and the capability ** timing 5 events has been implemented. I got a little carried away and implemented the following additional features:
    a. 'Right Click' on a subject cell (when the time for that subject is not running) will clear the subject box.
    b. 'Double Click' on a subject cell (when the time for that subject is not running) will allow the user to select a new 'Subject' without 'cut and paste'.
    c. Addition ** elapsed time.
    d. Addition ** rudimentary 'color coding' to see when a timer is running, stopped, or reset.

    WARNING: I changed the times on the last 5 entries in the 'Exams Sheet' to be able to test the s**tware using shorter times. The original last 5 lines are at the bottom ** the file on lines 142 thru 146.


    I like the design ** your file. I tried to leave your design intact as much as possible. Several formulas were removed for more efficient processing. If you don't like anything I've done or want changes, please feel free to remove it, or I'll remove it if it is beyond your capability.

    I was thinking you might want to add additional color coding to indicate when there are 5 minutes or less left in an exam. This might apply to the 'Extra 25% time' also.

    Lewis

    NOTE: There is a problem with ExcelForuml.com on March 8, 2014 that universally changes all combinations ** 'o' and 'f' next to each other to '**'.
    Administrators are aware ** the problem and are working on correcting the problem.
    Last edited by LJMetzger; 03-08-2014 at 04:52 PM. Reason: Added '**' note.

  5. #5
    Registered User
    Join Date
    03-04-2014
    Location
    wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Problem adding more countdown timers

    You are a legend! This is fantastic. Thanks so much for your help with this. I will be sure to credit you to my exams officer when I show her. I also like your suggestion for the color coding, I assume I can do this using conditional formatting on the cells?

    Thanks again for your help

    Kind regards
    John

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

    Re: Problem adding more countdown timers

    I'm glad it worked out for you.

    You can probably do the color coding with 'Conditional Formatting'. If 'Conditional Formatting' doesn't work, let me know and I'll solve the problem with some VBA code.

    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. Best way to make multiple countdown timers
    By Dave_ross in forum Excel General
    Replies: 19
    Last Post: 02-04-2019, 05:06 PM
  2. Multiple Countdown timers.
    By dawidski in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2013, 11:42 PM
  3. How to Create Mutiple Countdown Timers In Excel
    By Janto724 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2013, 06:36 PM
  4. multiple countdown timers in excel?
    By hollandrob81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2013, 04:12 PM
  5. Countdown Timers?
    By phil2006 in forum Excel General
    Replies: 2
    Last Post: 09-11-2007, 07:00 AM

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