+ Reply to Thread
Results 1 to 6 of 6

Down-counter

  1. #1
    Registered User
    Join Date
    10-04-2008
    Location
    West Palm Beach
    Posts
    11

    Down-counter

    Hi all.

    I need a timer of sorts that counts backwards and when it hits '0' it stops and emits a beep or plays a wav file. Simply put: I enter, say 1000 seconds in one cell, hit a button and the countdown starts, displaying the time left in another cell.

    Any help or ideas appreciated,
    Bjoern

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Down-counter

    Hi,

    Do you want the timer to continue counting down even if Excel is in edit mode?
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    12-29-2010
    Location
    Montreal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    11

    Re: Down-counter

    Please Login or Register  to view this content.
    Last edited by fomoz; 02-16-2011 at 12:34 AM.

  4. #4
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Down-counter

    Bjoern,

    I had asked a similar query a few months back and I had found something in GOOGLE which yu might find useful so adding it, though I had not received a solution on the forum for this query the attachemnt may be helpful incase you are good in VBA

    http://www.excelforum.com/excel-work...-in-excel.html

    Regards
    e4excel
    Last edited by e4excel; 02-16-2011 at 01:46 AM.

  5. #5
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Down-counter

    I've posted some code which will do this and will continue to run even if Excel is in edit mode. It was adapted from a post by Jaafar Tribak as mentioned in the code comments.

    Standard code module
    Please Login or Register  to view this content.
    Sheet1 Class Module
    Please Login or Register  to view this content.
    I have attached an example. Simply open the workbook and click the 'Start Timer' button.
    The worksheet_calculate event handler will not run while Excel is in Edit mode and I make no guarantees about the stability of the application!
    Attached Files Attached Files
    Last edited by Colin Legg; 02-16-2011 at 06:15 AM.

  6. #6
    Registered User
    Join Date
    10-04-2008
    Location
    West Palm Beach
    Posts
    11

    Re: Down-counter

    Thanks fomoz, however, it fails to compile because 'PlayWav' is not deifned as a sub or function.

    Bjoern

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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