+ Reply to Thread
Results 1 to 2 of 2

Countdown Timer with Sounds

  1. #1
    Registered User
    Join Date
    02-14-2019
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    4

    Countdown Timer with Sounds

    Hi Team

    I am creating a simple countdown timer in excel but I need help on how to put sounds when the timer reaches 0:00:00.
    Also I would like "Manual" button when click to show a pop up box where they can enter the time manually and that will be copied in cell Q2.

    Here is the current code on my worksheet. I also attached the file for better understanding

    Dim b As Boolean
    Sub StartCountDown()
    b = True
    Do While b
    Application.Wait (Now + #12:00:01 AM#)
    DoEvents
    If Sheets("Adjustment").Cells(2, "R") = #12:00:01 AM# Then Exit Sub
    Sheets("Adjustment").Cells(2, "R") = Format(DateAdd("s", -1, Sheets("Adjustment").Cells(2, "R")), "hh:mm:ss")
    Loop
    End Sub
    Sub PauseCountDown()
    b = False
    End Sub
    Sub ResetCountDown()
    b = False
    Sheets("Adjustment").Cells(2, "R") = "00:15:00"
    End Sub


    Thank you in advance for any assistance
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Countdown Timer with Sounds

    please put your code in TAGS. otherwise a moderator here will post a reference to the forum rules. you can play sounds in VBA by opening audio files. .WAV extensions are very common for this purpose. try this code to do that (on a 32-bit windows system only. code would have to include PTRSAFE in the API call if you are running 64 bit win OS):
    Please Login or Register  to view this content.

+ 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] hwnd timer pause VBA countdown timer
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2019, 04:25 AM
  2. 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
  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
    By pka in forum Excel General
    Replies: 0
    Last Post: 10-23-2011, 09:18 AM
  6. Countdown Timer
    By gkokaisel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2011, 08:02 PM

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