+ Reply to Thread
Results 1 to 2 of 2

Date/Time Function

  1. #1
    Registered User
    Join Date
    12-01-2005
    Posts
    45

    Question Date/Time Function

    Hi all,

    Just a little help - hopefully this is a simple one. When someone enters data in a cell, I would like to record the date and time this was done in the adjacent cell.

    I can use -

    =IF(A1="Y",NOW(),"Not Complete")

    But this will auto update. I want the date and time to be fixed once the cell has been updated.

    Any help, as always, will be massively appreciated!

    Cheers

    Rob

  2. #2
    Stefi
    Guest

    RE: Date/Time Function

    You can do this with a Change event:

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address(False, False) = "A1" Then
    Application.EnableEvents = False
    If Range("A1") = "Y" Then
    Range("B1") = Now()
    Else
    Range("B1") = "Not complete!"
    End If
    Application.EnableEvents = False
    End If
    End Sub

    Regards,
    Stefi

    „systemx” ezt *rta:

    >
    > Hi all,
    >
    > Just a little help - hopefully this is a simple one. When someone
    > enters data in a cell, I would like to record the date and time this
    > was done in the adjacent cell.
    >
    > I can use -
    >
    > =IF(A1="Y",NOW(),"Not Complete")
    >
    > But this will auto update. I want the date and time to be fixed once
    > the cell has been updated.
    >
    > Any help, as always, will be massively appreciated!
    >
    > Cheers
    >
    > Rob
    >
    >
    > --
    > systemx
    > ------------------------------------------------------------------------
    > systemx's Profile: http://www.excelforum.com/member.php...o&userid=29254
    > View this thread: http://www.excelforum.com/showthread...hreadid=490986
    >
    >


+ 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