+ Reply to Thread
Results 1 to 3 of 3

Locking all but a few cells

  1. #1
    Registered User
    Join Date
    09-30-2012
    Location
    Madison, WI
    MS-Off Ver
    Excel 2010
    Posts
    49

    Locking all but a few cells

    Hi all,

    I've selected the cells that I don't want to lock and I've unchecked the "locked" box in the protections tab. After locking the worksheet I am able to edit these cells, but the whole worksheet immediately becomes unprotected when I do edit one of these cells. I have code running to sort some of the protected cells, but I do have the sort box checked. Any idea what may be going on?

    Thanks!
    Brian

  2. #2
    Registered User
    Join Date
    09-30-2012
    Location
    Madison, WI
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Locking all but a few cells

    I apologize. I posted this a bit too soon and didn't realize how much the VBA code was interfering with this. I had actually posted a thread about this a very long time ago.

    http://www.excelforum.com/excel-prog...orksheets.html

    I'm not sure why the code isn't re-locking the worksheet though. Here is the code:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,919

    Re: Locking all but a few cells

    You are missing the "protect" code from the original thread post #5:
    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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] Locking cells based on color in doc with merged cells
    By mushedpotatos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2014, 03:14 AM
  2. Locking specific cells eventually changing to locking all cells
    By davidingilbert in forum Excel General
    Replies: 1
    Last Post: 03-19-2013, 06:50 PM
  3. Help with macro, automatical locking cells when excel is closed but only locking 1 sh
    By snoopy1461 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2011, 11:29 AM
  4. Entering in data in specific cells using range protect or locking the cells
    By howard101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2008, 11:05 AM
  5. Replies: 1
    Last Post: 07-21-2006, 11:05 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