+ Reply to Thread
Results 1 to 4 of 4

current time

  1. #1
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    current time

    Hi everyone.

    I have query on applying current time. when I use NOW() it gives me current time as well as current date. I just want the current time which I can get by using CTRL+SHIFT+;. But I would like to know the name of function which gives just current time as i need to build macro to insert only current time(not with current date). Or pleae let me know the macro code by which i can get only current time.
    thank you

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    how about now() - today() ?
    not a professional, just trying to assist.....

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by mangesh
    Hi everyone.

    I have query on applying current time. when I use NOW() it gives me current time as well as current date. I just want the current time which I can get by using CTRL+SHIFT+;. But I would like to know the name of function which gives just current time as i need to build macro to insert only current time(not with current date). Or pleae let me know the macro code by which i can get only current time.
    Hi Mangesh,

    Duane's formula will give you the correct time, but if this is for the code within a macro (to prevent the time from changing once assigned) then you will probably be better with

    ActiveCell.Value = Now() - Int(Now)

    hth
    ---
    Si fractum non sit, noli id reficere.

  4. #4
    Registered User
    Join Date
    11-15-2006
    Posts
    21

    Unhappy Current time

    try this sorry i am so late hope you can use this
    Place =CT() in the cell you want the current time show



    CODE

    Function CT()
    ' return current time
    CT = Time
    End Function

+ 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