+ Reply to Thread
Results 1 to 3 of 3

Auto Lock after first Data Entry and Time Stamp

  1. #1
    Registered User
    Join Date
    04-06-2015
    Location
    Mississauga, Canada
    MS-Off Ver
    2013
    Posts
    2

    Auto Lock after first Data Entry and Time Stamp

    Hi all,

    I just registered but have been a long time reader of the forum. I would like some help regarding a spreadsheet that I am currently trying to program.

    It goes something like this:


    Row Column C Column D Column E
    2 Tom Dave Bob
    3 Approved Not Approved Amended
    4 Time & Date Time & Date Time & Date


    • C2, D2 and E2 are names of Employees. Tom can only change C3 and C4. He cannot change anything in D3, D4, E3 and E4. Similarly, Dave and Bob can only change their own respective column values.
    • C3, D3 and E3 - each have Data Validation Lists with drop down options Appoved, Not Approved and Amended.
    • C4, D4 and E4 have the following formulas:

    =IF($C$3<>"",IF(C4="",NOW(),C4),"")
    =IF($D$3<>"",IF(D4="",NOW(),D4),"")
    =IF($E$3<>"",IF(E4="",NOW(),E4),"")

    As soon as value was entered in Cell C3, C4 shows the time and date. Same goes for E3, E4 and D3, D4.

    My question is, now that any value is selected in cell C3 (e.g. Approved), I would like it to be automatically locked and no one else can change it (even Tom, who originally approved it).

    Any suggestions would be welcome,

    Thanks,

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Auto Lock after first Data Entry and Time Stamp

    use a sheet specific macro

    check if the target cell is in columns 3 4 or 5 if not quit
    if the cell has data in it select the cell to the right.

    right click on the sheet name at the bottom of excel and select view code

    a macro sheet will open

    paste this code there

    close the macro sheet and you are ready to go. the macros runs automatically.

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    04-06-2015
    Location
    Mississauga, Canada
    MS-Off Ver
    2013
    Posts
    2

    Re: Auto Lock after first Data Entry and Time Stamp

    Dear mehmetcik,

    THANK YOU SO MUCH. It works like a charm. If I ever get a chance, I would like to shake hands with you. You made me look like a rockstar in front of my manager.

    Best regards,
    mac

+ 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. Auto Lock Cells After Data Entry
    By DixieLou in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2014, 03:39 PM
  2. Macro to auto lock cells after data entry
    By Mhofu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2013, 05:45 AM
  3. [SOLVED] How do I lock a stamp date/time formula for an entry on a row?
    By PROPERTIES INC. in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-09-2012, 01:24 PM
  4. Auto Lock Cells after Data Entry AND Save
    By ROSH22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2012, 06:57 AM
  5. Auto Sort, Auto Lock, Auto Date & Time Stamp
    By suehatesyou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2010, 02:57 PM

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