+ Reply to Thread
Results 1 to 8 of 8

How do I make a clock?

  1. #1
    Forum Contributor
    Join Date
    03-24-2007
    Posts
    107

    How do I make a clock?

    I want my spreadsheet to show the time on my computer changing each second

    I will then input in 3 separate cells called:
    hour
    min
    sec

    I will then add or subtract this time onto another clock that changes each second.

    How do I do this?
    Excel 2007

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: How do I make a clock?

    See Andypope solutions:

    http://www.andypope.info/fun/clocks.htm
    Never use Merged Cells in Excel

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: How do I make a clock?

    Or use this macro (change C3 and C4 for displaying result in other cells):

    Please Login or Register  to view this content.
    Last edited by zbor; 04-16-2011 at 04:41 AM.

  4. #4
    Forum Contributor
    Join Date
    03-24-2007
    Posts
    107

    Re: How do I make a clock?

    I can't get it to work. However, I'm not a very good programmer.

    Tell me if I left out a step

    I started a new file
    r click on sheet 1
    selected view code
    pasted your code on the page
    saved my file as clock 2.xlsm

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: How do I make a clock?

    Instructions


    Open the workbook

    Press the "Alt" and "F11" keys together to access the VBE. This opens up a window with the Visual Basic for Applications (VBA) code.

    pasted your code on the page
    save your file as clock 2.xlsm

  6. #6
    Forum Contributor
    Join Date
    03-24-2007
    Posts
    107

    Re: How do I make a clock?

    Thank you I got it working!

    Now I need to add or subtract hours minutes and seconds

    Hours would be in cell e4, min in f4, seconds in g4

    example, I want to add 2hours 23 min and 17 sec
    e4 = 2
    f4 = 23
    g4 = 17

    How do I make a new timer to add this time to the clock?

    I'd also like a data validation list that says "add" and another "subtract" because sometimes I want to subtract this time

  7. #7
    Forum Contributor
    Join Date
    03-24-2007
    Posts
    107

    Re: How do I make a clock?

    I don't know how to add or subtract time

    I can convert 2:23:17 into 8597 seconds. However if I add this to c4, I can't read the display

    Can c4 be separated into 3 cells?

  8. #8
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: How do I make a clock?

    Wow, that's cool.
    Kinda useless for me right now, but cool to know.
    thanks

+ 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