+ Reply to Thread
Results 1 to 2 of 2

Locking cells based on another cell's input

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Singapore, Singapore
    MS-Off Ver
    Excel 2010
    Posts
    1

    Locking cells based on another cell's input

    I need help with a code. i need to select between 4 choices which are named in A1,A2,A3,A4 while the selection of these choices by typing either 1 or 0 is in B1,B2,B3,B4. What I would like the code to do, is when 1 is typed in B1, the other cells, B2,B3,B4 are locked. Likewise for selection of B2, which will result in the locking of B1,B3,B4.

    If possible, an IF function would be good! a VBA code would also do but i'm not too good at it so pardon me for asking for an explanation! THANKS SO MUCH!

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Locking cells based on another cell's input

    Hi friscer

    Welcome to the forum.

    Would you need the ability to change your mind? Having entered something in (say) B1 would you need to change that to a B2 entry (because, of course, it will not be alllowed if it is locked).

    An easy way would be to use a bit of VBA to lock all 4 cells once any of them have an entry. You could then have a system to unlock (but this might defeat the object of locking in the first place)

    Regards
    Alastair

+ 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