+ Reply to Thread
Results 1 to 6 of 6

Unlock / Lock cell based on another cel value

  1. #1
    Registered User
    Join Date
    02-10-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Unlock / Lock cell based on another cel value

    Hi

    I have the following code where if value in J9 = " manual" then cells L9 - W9 are unlocked. How to I get this to work for other rows

    Please Login or Register  to view this content.
    Administrative Note:
    • Please see Forum Rule #3 about proper use of code tags and adjust accordingly...
    • Added for you this time, but please use them in the future…Thanks.
    Last edited by jeffreybrown; 02-10-2013 at 05:52 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Unlock / Lock cell based on another cel value

    How about...

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    02-10-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Unlock / Lock cell based on another cel value

    Jeff

    Many thanks. all working Ok now.

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Unlock / Lock cell based on another cel value

    Hi BernardTodd,

    Welcome to the Forum.

    You could also do this without VBA by using data validation.

    See the attached WorkBook as sample.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Registered User
    Join Date
    04-11-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: Unlock / Lock cell based on another cel value

    Winon ..in ur file the menu is dim ... How to enable it.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Unlock / Lock cell based on another cel value

    Hello mubashar,

    Just Unprotect the Sheet.

    Certain Cells have been "Locked" or "UnLocked" and some Cells contain Data validation. Only when the Data Validation criteria in certain Cells is met will it respond accordingly.

    Locking or UnLocking Cells only takes effect when a Sheet is protected.

    Also see the "Please Consider" note at the bottom of this post.

    hope that helps!

+ 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