+ Reply to Thread
Results 1 to 12 of 12

Stopwatch with registered timestamp at push of a button

  1. #1
    Registered User
    Join Date
    07-03-2022
    Location
    Sweden
    MS-Off Ver
    2021
    Posts
    25

    Stopwatch with registered timestamp at push of a button

    Hi again.

    I am trying to find a stopwatch function that register times on a click on a button in a specific cell.
    Only thing I find when I am google stopwatch is a start, stop, reset function.

    In this case, I want to first reset the timer (If it not only restored allready)
    And then, when I push "Start" then stopwatch will start...
    Then when I click Reg. 1 the timestamp from the stopwatch is going to be saved to B5
    The stopwatch is still going....
    Then when I click Reg. 2 the timestamp from the stopwatch is going to be saved to B8
    And when I click stop the timestamp from the stopwatch is going to be saved to B11 and the stopwatch is going to stop.

    Se attached file...


    If there is a more easy way to do this then the example I find, please do tell me...
    The file I attached is from google and copy paste with some minor change from me.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,265

    Re: Stopwatch with registered timestamp at push of a button

    You don't really need to have a "Stop watch". All you need to do when you "Start" the stop-watch is to record the time it is when you press the button (like in VBA, say:
    Range("A1")=Now

    When you click on Reg. 1, record the current time in B6
    Range("B6")=Now

    And clicking Reg. 2 would record current time in B8
    Range("B8")=Now

    Then you can just do the subtraction to get the elapsed time between the times the buttons were pushed.

  3. #3
    Registered User
    Join Date
    07-03-2022
    Location
    Sweden
    MS-Off Ver
    2021
    Posts
    25

    Re: Stopwatch with registered timestamp at push of a button

    I am sorry, but that answer did not help me at all.

    I need the stopwatch to be there.
    And how do I record the time when I click the button?

    I cant excel, thats why I am here.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Stopwatch with registered timestamp at push of a button

    you could adapt the attached file by altering the destination cells in the code.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,265

    Re: Stopwatch with registered timestamp at push of a button

    Please see the attached. Pressing Start clears the times in cells B6, b8, and B10. Press Reg. 1 button, and it shows the time in B6. Reg 2. button then shows time in B8, and Stop shows the time in B10.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-03-2022
    Location
    Sweden
    MS-Off Ver
    2021
    Posts
    25

    Re: Stopwatch with registered timestamp at push of a button

    Quote Originally Posted by Gregb11 View Post
    Please see the attached. Pressing Start clears the times in cells B6, b8, and B10. Press Reg. 1 button, and it shows the time in B6. Reg 2. button then shows time in B8, and Stop shows the time in B10.
    Thank you, I will look into this when I got some time over.
    I will return with answer or more question if needed.

    Thanks

  7. #7
    Registered User
    Join Date
    07-03-2022
    Location
    Sweden
    MS-Off Ver
    2021
    Posts
    25

    Re: Stopwatch with registered timestamp at push of a button

    Quote Originally Posted by Gregb11 View Post
    Please see the attached. Pressing Start clears the times in cells B6, b8, and B10. Press Reg. 1 button, and it shows the time in B6. Reg 2. button then shows time in B8, and Stop shows the time in B10.
    This looks really good, can it be done so the timer that starts when I press START button would be visible in one cell? Example in A2

  8. #8
    Registered User
    Join Date
    07-03-2022
    Location
    Sweden
    MS-Off Ver
    2021
    Posts
    25

    Re: Stopwatch with registered timestamp at push of a button

    I did manage to edit your file to get four diffrent timestamps as I want, but I cant get a timer to be visible when I click start in that file.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,265

    Re: Stopwatch with registered timestamp at push of a button

    Hmm, I thought I replied to this yesterday but it looks like it didn't go through. When you say to have the timer "visible", are you saying you want a cell to show 0:01, then 0:02, 0:03, etc. each second? If so, I googled getting this done and saw a post where you can do that and I was successful in getting that to work, but I couldn't get it to stop. You may have better luck in googling this and getting an answer that works for you. Good luck.

  10. #10
    Registered User
    Join Date
    07-03-2022
    Location
    Sweden
    MS-Off Ver
    2021
    Posts
    25

    Re: Stopwatch with registered timestamp at push of a button

    Quote Originally Posted by Gregb11 View Post
    Hmm, I thought I replied to this yesterday but it looks like it didn't go through. When you say to have the timer "visible", are you saying you want a cell to show 0:01, then 0:02, 0:03, etc. each second? If so, I googled getting this done and saw a post where you can do that and I was successful in getting that to work, but I couldn't get it to stop. You may have better luck in googling this and getting an answer that works for you. Good luck.
    Could you please give the link to that, so I could work from there and maybe I find a way to get it to stop.

  11. #11
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,456

    Re: Stopwatch with registered timestamp at push of a button

    see attachment with an application.ontime
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  12. #12
    Registered User
    Join Date
    07-03-2022
    Location
    Sweden
    MS-Off Ver
    2021
    Posts
    25

    Re: Stopwatch with registered timestamp at push of a button

    Quote Originally Posted by bsalv View Post
    see attachment with an application.ontime
    Wow, thank you so much, that was really helpful to me

+ 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. Create running stopwatch/timer with 1 button (start/stop). No reset button.
    By leeroy2612 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2021, 12:59 AM
  2. Toggle Button push issue
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2016, 02:06 PM
  3. Toggle Button for Stopwatch
    By gclode in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-27-2014, 01:30 PM
  4. Delete a shape with a button push
    By jeff_kaufman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2013, 02:20 PM
  5. graph on the push of a button
    By shortman_alan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2008, 09:05 AM
  6. The color of a push button
    By Bobby in forum Excel General
    Replies: 8
    Last Post: 11-13-2005, 10:45 AM
  7. [SOLVED] Push the button
    By chris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2005, 11:05 AM

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