+ Reply to Thread
Results 1 to 6 of 6

cell protection

  1. #1
    Registered User
    Join Date
    01-26-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    cell protection

    Hi,

    I have a feeling the answer is no to this, but figured i'd ask on the off chance!

    In Excel 2010 is it possible to make certain cells unselectable, whilst making certain other cells selectable but not editable?

    Thanks in advance

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: cell protection

    Hello and welcome to the forum,

    By default, the property of a cell is 'Locked'. When you protect a worksheet, it asks which cells the user can select. If you choose Locked and Unlocked cells then you can select both. If you choose only Unlocked cells then the user can never select a Locked cell. The second part (to the best of my knowledge) requires vba. It would be simply once a user selects a cell, the value or formula in the cell is saved in memory. If the user changes the contents of the cell, then the macro returns the original data again. You can also put a pop up saying that these cells are not to be modified. I have code somewhere for this that another member wrote. Let me see if I can find it for you.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: cell protection

    i'm not sure whether you are looking for something like this..

    refer this..

    http://office.microsoft.com/en-us/ex...010342979.aspx
    Thanks!
    Raga.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

    I learnt so many things from these links.

  4. #4
    Registered User
    Join Date
    01-26-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: cell protection

    Thanks for the replies both

    abousetta - i think the vba you described is what i need, if you could find it that'd be really good of you thanks.

    ragavan - thanks for the link, but it's not quite what im after. I basically want to be able to stop the selection of specific locked cells, but also have users able to select other locked cells - sorry if that doesn't make too much sense

  5. #5
    Registered User
    Join Date
    01-26-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: cell protection

    Hi,

    I have just had a look around and found the vba which does as you described in the following thread:

    http://www.excelforum.com/excel-prog...e-in-cell.html

    Thanks again for your help

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: cell protection

    This approach is even better than the one I saw before. @DonkeyOte is a real pro. Unfortunately, he doesn't come around this neck of the words any longer.

    abousetta

+ 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