+ Reply to Thread
Results 1 to 5 of 5

Conditionally locking the cell

  1. #1
    Registered User
    Join Date
    02-26-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Conditionally locking the cell

    Hii
    I have a problem. I want to conditionally lock cells based on one cell. Suppose if D5 is entered from data validation drop down. 1 is entered then E5 H5 I5 should be locked
    Similarly if E5 is entered then D5 H5 I5 should be locked and same for others like H5 and I5.
    If data is removed. The cells should be unlocked again. There are 60 similar rows for individual entries. I am attaching a file. Grey cells should be locked. I tried to search but could not find the appropriate result. I will be thankful if you provide me the solutions
    Thanks a lot.
    Attached Files Attached Files

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Conditionally locking the cell

    Hi vickey.narang
    I havent looked at the workbook but maybe you can adapt something like this...
    Please Login or Register  to view this content.
    just change the ranges and the a1 to the drop down box range
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    02-26-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Conditionally locking the cell

    Seems like this is not working.. Please have a look at the workbook. Actually I want to lock the cells. It not just giving warnings Only selected cells should be locked

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Conditionally locking the cell

    hmmm. cant think of an easy way. Could you enter the data via a userform?

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Conditionally locking the cell

    Quote Originally Posted by vickey.narang View Post
    Hii
    I have a problem. I want to conditionally lock cells based on one cell. Suppose if D5 is entered from data validation drop down. 1 is entered then E5 H5 I5 should be locked
    Similarly if E5 is entered then D5 H5 I5 should be locked and same for others like H5 and I5.
    If data is removed. The cells should be unlocked again. There are 60 similar rows for individual entries. I am attaching a file. Grey cells should be locked. I tried to search but could not find the appropriate result. I will be thankful if you provide me the solutions
    Thanks a lot.
    I presume that every cell is unlocked prior the the user changing one. After they have changed one, you want the others locked.
    Not sure if this is what you meant. This will lock the gray cells when you change one of the dropdowns.
    I haven't tested this, so there may be syntax errors.
    Please Login or Register  to view this content.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

+ 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