+ Reply to Thread
Results 1 to 8 of 8

Cell Locked or Unlocked depending on another CELL value

  1. #1
    Registered User
    Join Date
    07-14-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    66

    Cell Locked or Unlocked depending on another CELL value

    Dear All,

    I'm trying as below:

    If F3 contains specific word i.e. FCL then only cell K3 and L3 are unlocked or available for data input.

    Additional information:
    F3:F10002 contain data validation list
    I need to apply above condition on K3:K10002 and L3:L10002

    I did some search on this forum and I came to know above can only achieve through VBA only. Is there is any possible way without VBA? I'm not good with VBA etc therefore your assistance will be highly appreciated.

    Thanks in advance!!

    Regards,
    MYEM

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Cell Locked or Unlocked depending on another CELL value

    I think you need to go only with VBA Solution.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    07-14-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Cell Locked or Unlocked depending on another CELL value

    Can you please also advise what to be done to achieve above??

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Cell Locked or Unlocked depending on another CELL value

    so you want to unlock the Cell K3,k4,k5 up to K10002 if F3,f4,f5 up to F10002 contains word "FCL" or you want to unlock K2 to K10002 if only F3 Contains Word "FCL"

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Cell Locked or Unlocked depending on another CELL value

    • Right-click on the sheet tab
    • Select View Code from the pop-up context menu
    • Paste the code below in the VBA edit window
    • Change the password "Secret" to suit.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  6. #6
    Registered User
    Join Date
    03-21-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Cell Locked or Unlocked depending on another CELL value

    Sorry for digging up an old post but it came up in my search, and I just need a little help tweaking it. I'd like to unlock E21 based on "Override" being selected via a drop down validation in E20. Thanks for the help.

  7. #7
    Registered User
    Join Date
    07-14-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Cell Locked or Unlocked depending on another CELL value

    Sorry for replying late..... and thanks to AlphaFrog for providing me VBA code but dose not seem to be working what I want!

    This sheet will be filled by my team mates and I cannot go to them everytime inserting passwords. I would like you to advise me VBA code without password protection for following:

    If in F3:F10002 text FCL is mentioned then only K3:K10002 and L3:L10002 are available for number entry if F3:F10002 contains anything else then K3:K10002 & L3:L10002 do not accept any entry or remain locked.

    Appreciate your help and time on above query.

    Thanks!

  8. #8
    Registered User
    Join Date
    07-14-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Cell Locked or Unlocked depending on another CELL value

    Hello Everyone!!

    thanks for your time and input I've achieved my required thing without VBA

    I'll share my little knowledge with all you PRO's just incase if it could be helpful to you if you come across the same situation. My question was as below:

    If F3:F10002 any cell contain FCL then corresponding K3:K10002 and L3:L10002 allow input otherwise they do not accept any input or remain lock for input.

    Solution which I did is as below:

    I went to K3 and used DATA VALIDATION > Custom > and then input formula as =IF($F3="FCL",INT($K3),0)

    Similarly I used DATA VALIDATION > Custom > and then input formula as =IF($F3="FCL",INT($L3),0)

    And solved my problem

    Thanks to all folks!!

+ 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. Hitting Enter in an unlocked cell without it advancing to the next unlocked cell
    By GuruWannaB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2013, 09:47 AM
  2. Highlighting Locked/Unlocked Cells
    By jderren in forum Excel General
    Replies: 2
    Last Post: 10-04-2010, 03:26 PM
  3. When protecting workbook with pw, unlocked cells are still locked
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-18-2009, 12:52 AM
  4. Searching for locked/unlocked cells
    By Karthik Bhat - Bangalore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2005, 11:05 PM
  5. Color Cell Based on Locked/Unlocked Property
    By sowetoddid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-02-2005, 05:21 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