+ Reply to Thread
Results 1 to 6 of 6

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 this code which protect the entire sheet if the name of sheet is not equal to today's date and is the name of sheet is same as todays date then it unlock the sheet to work with.

    Please Login or Register  to view this content.
    What I require is vba code which do the same thing but lock and unlock the range/s only. Can someone help ans I am a learner and not a proficient.?


    Thanks....

  2. #2
    Registered User
    Join Date
    07-17-2012
    Location
    Manama,Bahrain
    MS-Off Ver
    2003, 2007
    Posts
    71

    Re: Allow user to edit ranges on a protected sheet

    what you would need to do is unlock the cells in the ranges that you want to edit and put the password back on, this will restrict the user to edit and update the cells that have been unlocked. so....

    Please Login or Register  to view this content.
    Last edited by Cutter; 07-19-2012 at 07:39 PM. Reason: Added code tags

  3. #3
    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 ChuckYeager for you help.

  4. #4
    Registered User
    Join Date
    07-17-2012
    Location
    Manama,Bahrain
    MS-Off Ver
    2003, 2007
    Posts
    71

    Re: Allow user to edit ranges on a protected sheet

    You are welcome, Aleenkhan.

    It gives me great satisfaction that I have been able to use my learning to help others.

  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

    Is it possible to share this workbook so that more than one user can update it while having the same VBA code. But the above code would also try to protect the workbook structure (the line of code to protect workbook :ActiveWorkbook.Protect Password:="password", Structure:=True, Windows:=False) and Workbook protection and share can't work together . Any suggestions on this?
    Last edited by aleenkhan; 07-26-2012 at 12:24 PM.

  6. #6
    Registered User
    Join Date
    07-17-2012
    Location
    Manama,Bahrain
    MS-Off Ver
    2003, 2007
    Posts
    71

    Re: Allow user to edit ranges on a protected sheet

    Hi Aleen,

    If you try to share a workbook, it would automatically protect the structure of the workbook, as in you cannot add or delete the sheets without taking it off sharing.
    Sharing would prevent you from using the protection completely, it would not allow you protect or unprotect the workbook or the worksheet.

    If you have the workbook protected and then shared, the workbook will stay protected and in order unprotect, you will have to take it off sharing 1st and then unprotect it.

    Regards

    Chuck

+ 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