+ Reply to Thread
Results 1 to 3 of 3

Refreshing Date or Now function

Hybrid View

  1. #1
    Banned User!
    Join Date
    08-14-2008
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007 - Expertise Novice
    Posts
    69

    Refreshing Date or Now function

    Hi Guys,

    Dont know wether this is possible!
    But is it possible to have a function/formula/macro so that I can have a cell display the current date and time.

    I know its possible using
     =now()
    formula

    however it does not get refreshed automatically - I want these cells to auto refresh with the current time say everyone hour or so.

    The reason for this is I want to have a cloumn which show the correct number of days and time Lapsed since a request was created.

    And these fileds will go Red if the day count is above 5 days.

    Since there would be hundreds of rows added daily its not feasible to change each and every cell everday if you get my point

    Thanks

    Cross posted at http://www.mrexcel.com/forum/showthr...21#post1684421
    Last edited by dimitrz; 09-14-2008 at 08:14 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    have a look here
    http://www.cpearson.com/excel/OnTime.aspx

    your code
    in the bit where it says enter your code should look like this
    Sub The_Sub()
     [a1] = Now
       ' Call StartTimer to schedule the procedure again
       StartTimer
    End Sub
    where a1 is the cell your time is to be
    Last edited by martindwilson; 09-14-2008 at 08:53 AM.

  3. #3
    Banned User!
    Join Date
    08-14-2008
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007 - Expertise Novice
    Posts
    69

    Please investigate

    Thanks Martin,

    just checkin g the link and the code you mentioned

+ 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. Advanced Timesheet
    By DaKohlmeyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2008, 04:49 PM
  2. Week # Date function
    By erickguz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2007, 05:58 PM
  3. If And Date Function Problem
    By andyp161 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2007, 06:56 AM
  4. function to sum based on date
    By Jondal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2007, 08:57 AM
  5. Can you stop the Trim function translating hyphenated cells into date format?
    By iterature in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2007, 09:40 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