+ Reply to Thread
Results 1 to 5 of 5

Allow user to edit ranges on a protected sheet

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    India
    MS-Off Ver
    Excel 2003/2010
    Posts
    38

    Allow user to edit ranges on a protected sheet

    Hello,

    I have a workbook containing sheets as number of days in a month for ex: 01,02,03...........30,31. All sheets are protected along with the workbook protection to avoid any deletion or modification. What I require is a Macro code which will allow all users to edit a range (let's say H10:Z28) on the sheets? How can i do that ? Can someone help me please?

    Thanks in advance for your time.

  2. #2
    Registered User
    Join Date
    03-02-2011
    Location
    India
    MS-Off Ver
    Excel 2003/2010
    Posts
    38

    Re: Allow user to edit ranges on a protected sheet

    What I have is
    Please Login or Register  to view this content.
    But this code unlock the entire sheet for today and all future dates. What i need is to unlock the range only.
    Last edited by Leith Ross; 07-17-2012 at 04:43 PM. Reason: Added Code tags

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

    Re: Allow user to edit ranges on a protected sheet

    Hello aleenkhan,

    By default, all cells on a worksheet are locked. Locking a cell prevent the user from entering or changing a cell's value. You need to unlock the cells in the range H10:Z28.

    First, remove the worksheet protection
    Select the range
    Right click anywhere in the selected range and select Format Cells...
    Click the tab labeled Protection
    Click the check box Locked. it should not have a check mark now.
    Click the OK button
    Reset the sheet protection
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Allow user to edit ranges on a protected sheet

    If it has a password and you know it try this


    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-02-2011
    Location
    India
    MS-Off Ver
    Excel 2003/2010
    Posts
    38

    Re: Allow user to edit ranges on a protected sheet

    Thanks Leith,

    But I also do not want anyone to delete/modify the headers and other cells data, that's the reason i protected it . Can you modify the below code to unprotect the mentioned range only?

    Please Login or Register  to view this content.
    Thanks.
    Last edited by aleenkhan; 07-17-2012 at 04:49 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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