+ Reply to Thread
Results 1 to 3 of 3

Countdown interval timer project

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Countdown interval timer project

    Hi Guys,

    i am working on countdown timer with sound something like here:

    https://fitatmidlife.com/timer/

    i am using function application.ontime to run counter.
    Problem is starting when i try to add more conditions than just time change.

    I want to have:

    1. Long time interval - input number of loops
    2. Break Long Interval - how much break should last.
    3. Short Interval - after long interval and breaks with specific number of loops
    4. Break Short interval - after each short Interval Loop.
    5. User can input 0 and skip all kinds of breaks and intervals without Long Interval.

    Additionally:
    1. if time = 00:00:05 run sound only for High and Low Intervals
    2. If time = 00:00:04 run sound for High and Low Intervals
    3. if time = 00:00:00 run sound for for High and Low Intervals and breaks.

    The code is not very nice right now but this project is after usual work for personal use so i can not spend a lot of time on it.
    Help is needed to find out with yours smart heads how to create code properly in the easiest way.

    Screenshot_14.png
    In this example The timer should countdown from:

    1. 00:00:08 twice (2 number of loops) for Long Interval without breaks (Break Long Interval = 00:00:00)
    2. 00:00:10 twice - Short Interval with one break = 00:00:03.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Countdown interval timer project

    Hi Guys,

    the project is more difficult than i thought.
    I tried to implement this conditions using dictionary object but now application.ontime doesnt work.

    Why?

    Please help anyone,
    Jacek
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Countdown interval timer project

    Hi Guys,

    i think that i solved the problem.
    I used application.ontime which is not for looping.

    Better is to use loop while with connection to do events.

    Fell free to comment.

    Best,
    Jacek
    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. Countdown timer Working BUT starting the timer repeatedly SPEEDS UP TIMER!
    By Vinospam in forum Excel Programming / VBA / Macros
    Replies: 67
    Last Post: 03-30-2019, 06:42 PM
  2. Countdown timer
    By Maxicell in forum Excel General
    Replies: 0
    Last Post: 01-11-2017, 07:18 AM
  3. Countdown timer
    By Trickypottermus in forum Excel General
    Replies: 3
    Last Post: 11-13-2013, 08:09 AM
  4. Countdown timer
    By Nemeo in forum Excel General
    Replies: 0
    Last Post: 05-23-2007, 03:12 AM
  5. Countdown Timer
    By Zaphius in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2007, 06:14 AM
  6. Is a countdown timer possible?
    By aharmer in forum Excel General
    Replies: 1
    Last Post: 02-07-2005, 10:06 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