+ Reply to Thread
Results 1 to 5 of 5

disable cell content editing, but allow row/column removal

  1. #1
    Registered User
    Join Date
    03-31-2009
    Location
    Bremen, Germany
    MS-Off Ver
    Excel 2003
    Posts
    5

    disable cell content editing, but allow row/column removal

    Hi,

    I want to make it impossible for users to edit the content of some cells. However I do want users to be able to delete any row or column, even when these contain the content-protected cells.

    I can't figure out how to do this. Can anyone help? Thanks in advance!

  2. #2
    Registered User
    Join Date
    04-14-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: disable cell content editing, but allow row/column removal

    If you are only trying to protect few cells, you can in the sheet change event
    place code to check whether target cell is the cell you want to protect and display an error message when user tries to change that cell.

  3. #3
    Registered User
    Join Date
    03-31-2009
    Location
    Bremen, Germany
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: disable cell content editing, but allow row/column removal

    Quote Originally Posted by excel_1982 View Post
    If you are only trying to protect few cells, you can in the sheet change event
    place code to check whether target cell is the cell you want to protect and display an error message when user tries to change that cell.
    Hmm, unfortunately the Change Event is far from waterproof according to a book I have here (Excel 2003 Bible, J. Walkenbach). It claims that there are several ways in which users can still circumvent it. When users use 'Find & Replace' the Change Event will not be triggered for example.
    Last edited by Heliux; 04-24-2009 at 08:12 AM. Reason: Forgot to include quote of previous reply

  4. #4
    Registered User
    Join Date
    04-14-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: disable cell content editing, but allow row/column removal

    Then maybe try protecting the whole sheet and then protect the cell you dont want the user to edit.

    If needed record a macro

  5. #5
    Registered User
    Join Date
    03-31-2009
    Location
    Bremen, Germany
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: disable cell content editing, but allow row/column removal

    Quote Originally Posted by excel_1982 View Post
    Then maybe try protecting the whole sheet and then protect the cell you dont want the user to edit.

    If needed record a macro
    I've tried it out, but unfortunately then it becomes impossible to delete a row or column which contains protected cells.

+ 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