+ Reply to Thread
Results 1 to 13 of 13

Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

  1. #1
    Registered User
    Join Date
    07-19-2017
    Location
    Auckland
    MS-Off Ver
    Microsoft Office 2013
    Posts
    15

    Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Hi There. I am needing to make an adjustment to the protection options in my excel workbook. I have set these options within the Microsoft Excel 2013 user interface, however - purhaps the macro I am running is overriding this.

    I need users to be able to:

    -Select Locked Cells
    -Select Unlocked cells
    -Format Cells
    -Insert Rows

    Could this be built into the existing macro as shown below? I have also attached a screen capture of the options set within Microsoft Excel Protect sheet. These options are set, however users are not able to make any of these changes after the Macro is run.


    Capture.PNG

    Please Login or Register  to view this content.
    Last edited by aLi3nZ; 07-19-2017 at 06:39 PM.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    You need to reset the permissions when you re-protect the worksheet. Use the macro recorder to get the basic code...

  3. #3
    Registered User
    Join Date
    07-19-2017
    Location
    Auckland
    MS-Off Ver
    Microsoft Office 2013
    Posts
    15

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Hi There,

    Thank you, that makes sense. I used macro recorder and the following code was the result of setting these options:

    Please Login or Register  to view this content.
    Now if I modify my existing macro to include this, will this work? The formatting does look a bit strange, does this need to be changed?

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    you may need the comma after the password

    Please Login or Register  to view this content.
    Also I note when you insert a row it will copy the protections form above.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  5. #5
    Registered User
    Join Date
    07-19-2017
    Location
    Auckland
    MS-Off Ver
    Microsoft Office 2013
    Posts
    15

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Thanks so much. I will test out this updated Macro and let you know the results.

  6. #6
    Registered User
    Join Date
    07-19-2017
    Location
    Auckland
    MS-Off Ver
    Microsoft Office 2013
    Posts
    15

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Hi There,

    I have now tested the Macro and it is running perfectly across all Excel workbooks except 1.

    1 Excel Workbook is giving a run time error as per below. Is there anything I can look at to prevent this from occuring?

    Runtime.PNG

    When selecting debug, it is selecting this:

    Please Login or Register  to view this content.
    Full code:

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Do you have merged cells?
    If so they have properties like below

    Please Login or Register  to view this content.
    Although you should actually always avoid merged cells.

  8. #8
    Registered User
    Join Date
    07-19-2017
    Location
    Auckland
    MS-Off Ver
    Microsoft Office 2013
    Posts
    15

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Thanks for your suggestion. I tried adding this code and testing, but there is still an issue. The latest run time error references this as the problem code:

    Please Login or Register  to view this content.

  9. #9
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    If it isn't merged cells you should probably upload the file and we can see what cell it fails on and what is the problem with it.

  10. #10
    Registered User
    Join Date
    07-19-2017
    Location
    Auckland
    MS-Off Ver
    Microsoft Office 2013
    Posts
    15

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Hi There, yes that makes sense. Thank you very much. I have uploaded the spreadsheet that has the issue. I would really appreciate assistance with this. Macro is working well, just this 1 workbook doesn't like it.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    I means something like

    Please Login or Register  to view this content.
    But your sheet seems to have millions of rows in it in some sheets. You should delete the extra rows from every sheet and re-save it.

  12. #12
    Registered User
    Join Date
    07-19-2017
    Location
    Auckland
    MS-Off Ver
    Microsoft Office 2013
    Posts
    15

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Thank you very much for pointing out this issue. I had not noticed this. I will be working through and deleting these and will let you know if it fixes the crashing.

  13. #13
    Registered User
    Join Date
    07-19-2017
    Location
    Auckland
    MS-Off Ver
    Microsoft Office 2013
    Posts
    15

    Re: Excel 2013 - Adjust Excel Sheet Protection options to allow users to make some changes

    Hi There,

    I have gone through and cleared out these weird unused cells and everything is perfect. Thanks so much for all your support. I am marking this as solved.

+ 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. Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  2. Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  3. Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Replies: 2
    Last Post: 06-28-2005, 01: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