+ Reply to Thread
Results 1 to 6 of 6

Locking Timestamp

  1. #1
    Registered User
    Join Date
    03-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Locking Timestamp

    Here is my equation for my timestamp

    =IF(D2<>"",IF(A2="",NOW(),A2),"")

    Whenever I type into field D2 it populates current date and time in field A2 and down the A column as I write into current D columns. The next step I would like to do in which he was able to figure out so far is how to lock in the date and time after something has been typed into D2. If I make any changes to the D2 field it updates the date and time, which I dont want to happen. Please let me know if anyone has a solution for locking original time stamp. Thank you.
    Last edited by curtjer; 03-27-2009 at 03:31 PM.

  2. #2
    Forum Contributor
    Join Date
    03-12-2009
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 365
    Posts
    236

    Re: Locking Timestamp

    You could put this:

    Please Login or Register  to view this content.
    into the worksheet_calculate event.

    i.e. go into VBE find the worksheet in the right hand window (Project Manager, i think) right click on the worksheet and choose view code. In the window that pops up, choose worksheet from the left hand drop down and calculate from the right hand drop down. You will have to modify the code to match your data.
    If you can't figure out how a formula works, try stepping through it using "Evaluate Formula" in the Formula Auditing menu item in the tools menu!

    If you want to see where your code went wrong, try stepping through it by clicking in the code and pressing F8 and watch as the magic happens!


    If you are happy with any of the results, please add to the contributor's reputation by clicking the star icon.

  3. #3
    Registered User
    Join Date
    03-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Locking Timestamp

    I'm sorry, i'm a novice at this, I dont understand what VBE is, could you explain?

  4. #4
    Registered User
    Join Date
    03-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Locking Timestamp

    Hey, this works great if I dont delete the previous information in my cell that creates the timestamp. If I delete this it still refreshes the timestamp, but if I just edit current information without deleting it works great, let me know if you have a fix. Thank you.

  5. #5
    Registered User
    Join Date
    06-12-2020
    Location
    USA
    MS-Off Ver
    Windows 10
    Posts
    1

    Re: Locking Timestamp

    I need help in locking my timestamed cells.
    Column A is Name, Column B is X, Column C is formulated for Timestamp.
    How do i lock. I do not want TS to be edited.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Locking Timestamp

    Quote Originally Posted by J_Alvarado View Post
    I need help in locking my timestamed cells.
    Column A is Name, Column B is X, Column C is formulated for Timestamp.
    How do i lock. I do not want TS to be edited.
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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