+ Reply to Thread
Results 1 to 3 of 3

Locking the current row for edit when the value in a cell changes

  1. #1
    Registered User
    Join Date
    02-12-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    1

    Locking the current row for edit when the value in a cell changes

    I tried almost all the macros/Examples given in this forum . Sadly nothing works.

    My Problem:

    I have a sheet with values from A to L. If the value in the cell "L1" changes to "Approve" then the particular row alone should locked.
    If the second row has the value for the cell "L2" is "Reject". Then no need to lock that row.

    Any help will be much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Locking the current row for edit when the value in a cell changes

    For cells to be locked sheet protection needs to be ON, and by default if it's ON then all cells are locked.
    So first select all cells and unlock them - Format..Cells..Protection and untick the 'Locked' option.

    Now use the following Sheet Change procedure

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-12-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Locking the current row for edit when the value in a cell changes

    Thank you very much Richard. It works .......

+ 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. [SOLVED] need slight edit to current formulas
    By tlacloche in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-29-2013, 12:32 PM
  2. Edit filename in Formula with reference to a cell in current file
    By yatin1964 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2013, 09:35 AM
  3. locking current date row
    By scratchjohnson in forum Excel General
    Replies: 0
    Last Post: 06-17-2011, 08:23 AM
  4. Command Button for Edit / Locking Cells
    By macky1730 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2010, 08:36 AM
  5. Edit to current macro help
    By Stuwil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2009, 06:49 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