+ Reply to Thread
Results 1 to 7 of 7

Time in Spread Sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Time in Spread Sheets

    Hi All
    I was wondering if there is any formulas for putting a working clock on an excel spread sheet so that its on view all the time and works like a normal clock?

    Thanks Guys

    casper69

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Time in Spread Sheets

    theres vba which will put time in a cell is that what you mean?
    in a standard module
    Dim SchedRecalc As Date
    Sub Recalc()
    Range("C3").Value = Format(Now, "dd-mmm-yy")
    Range("C4").Value = Format(Time, "hh:mm:ss AM/PM")
    
    Call SetTime
    End Sub
    
    Sub SetTime()
    SchedRecalc = Now + TimeValue("00:00:01")
    Application.OnTime SchedRecalc, "Recalc"
    End Sub
    
    Sub Disable()
    On Error Resume Next
    Application.OnTime EarliestTime:=SchedRecalc, Procedure:="Recalc", Schedule:=False
    End Sub
    then in this workbook
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Disable
    End Sub
    
    Private Sub Workbook_Open()
    SetTime
    End Sub
    this will put date /time in c4/c3 of all sheets. but it is not very efficient as its constantly running /updating i tried to pin it to one sheet but then thats all it does it jumps to that on every update. there must be a better way
    Last edited by martindwilson; 01-26-2009 at 02:30 PM.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Time in Spread Sheets

    I was wondering if there is any formulas for putting a working clock on an excel spread sheet so that its on view all the time and works like a normal clock?
    IMO, that's a very bad idea. For one thing, it kills Undo. What's wrong with the clock on the taskbar?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-23-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Time in Spread Sheets

    Hi
    What i am after is a set up like you would do with the date.

    something that looks like: 12:54:01 PM

    Regards

    casper69

  5. #5
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Time in Spread Sheets

    Hi,

    I wonder why nobody suggested


    =NOW()


    Worksheet function.

  6. #6
    Registered User
    Join Date
    01-23-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Time in Spread Sheets

    Hi

    =NOW()

    Brings the current time in but as the minutes pass by the clock dont change

    Regards

    Ps, there is nothing wrong with the time in the task bar at all i just wondered if it is possible to put a working clock in a spread sheet?

    casper69

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Time in Spread Sheets

    ok try this add-in download an extract to a folder. then use tools add ins and select tm digital clock
    as i have no idea where to do this in 2007 good luck!
    http://www.tushar-mehta.com/excel/so...ital_clock.htm

+ 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