+ Reply to Thread
Results 1 to 7 of 7

Lock Cells from editing.

  1. #1
    Registered User
    Join Date
    11-11-2020
    Location
    Munich
    MS-Off Ver
    Excel 2013
    Posts
    13

    Lightbulb Lock Cells from editing.

    Hi,

    Thanks for being present and active in this community.

    I have an issue at work. I am trying to build this application which lets a user pick a name (Name Column) from the dropdown and then enters his contribution (%Contribution Column) to the corresponding name.

    I need help with:

    - Locking cells in %Contribution Column and greying them out if the corresponding value in Name Column is left blank (unpicked from the dropdown).


    Please look at the sample workbook that I attached to this post.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by chandraganji; 11-28-2020 at 04:38 PM.

  2. #2
    Registered User
    Join Date
    11-11-2020
    Location
    Munich
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Lock Cells from editing and greying them.

    Hi, I found a way to grey them out without using VBA. It would be great if you could help me with locking the cells.

    - Thanks

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Lock Cells from editing.

    I have a working macro for you but the Forum is not allowing me to post it for some reason. I will see if an Administrator can help.
    Last edited by Mumps1; 11-28-2020 at 12:02 PM.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Lock Cells from editing.

    Try the attached file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-11-2020
    Location
    Munich
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Lock Cells from editing.

    Hi, Thanks again.

    Unfortunately, I am not able to retrofit your code in my original project. I am not sure what is wrong with my code. I made some changes in the sample file so that it looks closer to my actual project. Could you please take a look and adjust your code?

    Attached Files Attached Files
    Last edited by chandraganji; 11-28-2020 at 02:28 PM.

  6. #6
    Registered User
    Join Date
    11-11-2020
    Location
    Munich
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Lock Cells from editing.

    Hey! I figured it out.

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Lock Cells from editing.

    Glad it worked out.

+ 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] Lock individual cells to prevent editing.
    By TomRet in forum Excel General
    Replies: 3
    Last Post: 01-06-2015, 10:50 PM
  2. lock only seclected cells for viewing and editing
    By robin.das077 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2012, 03:58 AM
  3. Replies: 3
    Last Post: 06-28-2012, 09:05 AM
  4. Greying out and disabling cells based on drop down selection
    By RichieSams2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2011, 07:40 PM
  5. lock cells from editing
    By associates in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2008, 11:58 PM
  6. Greying out some cells ?
    By ballack in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2007, 08:38 PM
  7. lock cells for editing-pawan
    By Pawan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2005, 09:06 AM

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