+ Reply to Thread
Results 1 to 3 of 3

Only allow locking of cells in a protected sheet

  1. #1
    Registered User
    Join Date
    08-30-2010
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2003
    Posts
    7

    Only allow locking of cells in a protected sheet

    Hi,

    So the sheet is protected and has both locked and unlocked cells. They can't edit locked cells but they can lock unlocked cells after they edit them so that the next user can't edit them.

    Any suggestions?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: Only allow locking of cells in a protected sheet

    No they can't
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Only allow locking of cells in a protected sheet

    I would use Workbook_BeforeClose macro that examines your workbook in the cells of concern and locks the ones that have values in them, then saves/closes the workbook. The next time the wb opens those cells are locked and uneditable.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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