+ Reply to Thread
Results 1 to 13 of 13

Digital clock on excel

Hybrid View

  1. #1
    Registered User
    Join Date
    01-14-2008
    Posts
    76

    Digital clock on excel

    hello

    Is ther any way i can get a digital clock on excel that changes or updates every second, i know htere is a "=now()" function but this does not change per second

    thanks in advance

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    See Andy's examples here

    http://www.andypope.info/fun/clocks.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-14-2008
    Posts
    76
    thanks bro
    thats what i want but i need it to be on a one individual cell

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning shilpz

    Format cell A1 to a time format of your choice then run this macro. It will update the cell every second :
    Public CntTme As Double
    Sub StartClock()
    Sheets("Sheet1").Range("A1").Value = Now()
    CntTme = Now + TimeSerial(0, 0, 1)
    Application.OnTime CntTme, "'" & ThisWorkbook.Name & "'!StartClock", , True
    End Sub
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  5. #5
    Registered User
    Join Date
    01-14-2008
    Posts
    76

    i dont get it

    where do i copy the code to i dont understand it i formated the cell A! to time
    ad pasted the forumula on a button but when i click the button

    can you plz send it to me in a xls file plz

    thanks in advance

  6. #6
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi shilpz

    Find zipped file, time.zip attached.

    HTH

    DominicB
    Last edited by dominicb; 08-19-2008 at 04:30 AM.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I've put Domenic's code in this workbook, it's triggered when the workbook opens
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-31-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Digital clock on excel

    Thanks for your Macro,It is working fine, again Thanks a lot.

+ 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