+ Reply to Thread
Results 1 to 2 of 2

Selecting and editing unlocked cells problem

  1. #1
    John Keith
    Guest

    Selecting and editing unlocked cells problem

    Im using Excel 2002,
    I want to protect my workbook/worksheet(s) and allow anyone to change a few
    specific non-contiguous ranges on some of the sheets. Any locked cell
    clicked on should do nothing. Any unlocked cell clicked on should allow
    editing.

    I have used Tools>Protection>Allow Users to Edit Ranges. I set up a test
    range from A1:D10 to have editable (and I click "apply"). Then I click on
    Protect Sheet... On this form I uncheck "Select locked Cells" and leave the
    default-check on "Select unlocked cells". Then click ok.

    Now, any click, anywhere on the sheet... will not select any cells, even the
    ones that should allow selecting and editing.

    A double click will put cell A1 into edit mode. This happens even when an
    entirely different cell is dbl-clicked. I try dbl clicking in C5, for
    example, (definitely inside the allow-edit range) and cell A1 gets the cursor
    in edit mode.

    If I just keep the 2 default checks on the "Protect Sheet" dialog message
    box... it all works just fine (the cells that will and wont allow editing..
    is just as expected) Only this still allows selecting of locked cells (but
    no editing is allowed)

    How do I get excel to allow editing in the ranges I want, and disallow
    selecting of the protected cells?

    If there is a solution to this problem... Will VBA still allow a protected
    cell to be modified? (perhaps with some extra coding to unprotect and
    re-protect the workbook/sheets)

    --
    Regards,
    John

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello John,

    By default all worksheet cells are locked. As you already know this has no effect until the sheet is protected. To unlock specific cells on the worksheet do the following:

    Unlocking Cells:
    1) Make sure the sheet is not protected.
    2) Select the cells you want to unlock.
    3) On the Excel Standard Toolbar choose Format.
    4) In the drop down menu choose Cells...
    5) In the dialog box select the tab mark Protection.
    6) Click the check box marked Locked

    Hope this answers your question,
    Leith Ross

+ 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