+ Reply to Thread
Results 1 to 5 of 5

hwnd timer pause VBA countdown timer

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

    hwnd timer pause VBA countdown timer

    Hi,

    i want to pause windows api timer.

    I created countdown timer with music but is there any option to pause timer?

    I would be grateful for any help.

    Best,
    Jacek
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2016 (preparing to update to 2021)
    Posts
    7,544

    Re: hwnd timer pause VBA countdown timer

    I looked at your file and I don't know why all the vba code to set a timer.
    I'm not going to modify that for but the simple way to pause the timer is to just stop it and leave the remaining time in the countdown cell, and then restart it again continuing with the cells count down value.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: hwnd timer pause VBA countdown timer

    A timer with stop and reset button.
    See attached.
    P.S. I was frightened to death by the music and sounds in your example.
    Attached Files Attached Files
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2016 (preparing to update to 2021)
    Posts
    7,544

    Re: hwnd timer pause VBA countdown timer

    Another solution maybe? Crossed Dotchijack's post
    Attached Files Attached Files

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

    Re: hwnd timer pause VBA countdown timer

    hi Guys,

    thank you for help!

    P.S. I was frightened to death by the music and sounds in your example.
    haha oo i was the same frightened like you when first time i listened to this timer (my timer is reproducing the logic):
    https://fitatmidlife.com/timer/

    I'm not going to modify that for but the simple way to pause the timer is to just stop it and leave the remaining time in the countdown cell, and then restart it again continuing with the cells count down value.
    exactly this is what i needed, thank you!

    Regarding your timers - application.ontime do not allow to edit cell white timer is running, and there is a problem with loops inside.

    I added play/pause mechanism to the timer (all is working besides number of loops - i will implement this soon - see attachment).

    Closing the topic,
    Best Wishes,
    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. [SOLVED] Countdown timer help
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-24-2016, 01:04 PM
  4. Countdown timer
    By Trickypottermus in forum Excel General
    Replies: 3
    Last Post: 11-13-2013, 08:09 AM
  5. Countdown Timer in Excel with a "pause" and "start" button
    By bbhagwat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2013, 05:49 AM
  6. Countdown Timer Pause and Resume Button
    By table83 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2010, 08:37 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