+ Reply to Thread
Results 1 to 5 of 5

Creating a timer

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Creating a timer

    Im looking to create a timer which starts running when i open excel and which pauses when i close it, but does not reset when i reopen excel, i then want to view this timer in a cell.

    I currently have a timber that works using cells to start, pause and reset the timer however it only works if the start timer is clicked and does not continue running when i use other cells in excel, To see this code please message back and ill post it if you find it relevant

    Thanks for any suggestions

  2. #2
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: Creating a timer

    Here is code that does it. Place it in ThisWorkbook module.
    Please Login or Register  to view this content.
    In a new sheet, define these cells in A2:A5
    Session started
    Session ended
    Session Duration
    Total time
    Use the Names deine tool to name the cells B2:B5 from teh left column (so matching te code in [brackets].
    You can hide the sheet if you wish (as long as it's not the only one).

    To see the value, either don't hide the timer sheet of place a forumla =[Total_time} somewhere/
    Voila!

  3. #3
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: Creating a timer

    I should habe mentioned that B4:B5 must be formatted [H]:mm:ss to show the times correctly.
    B2:B3 will be formatted when the file is opened after the first save, or you can use dd/mm/yyyy hh:mm

  4. #4
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: Creating a timer

    I'm now at a computer where I can upload the solution: timer.xls
    Does that warrant a star?

  5. #5
    Registered User
    Join Date
    12-10-2012
    Location
    Dothan Al.
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Creating a timer

    I a new to this forum so bear with me. I love excel potentials but it will be a wile before I can contribute to answer a question on Excel.

+ 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