Add new sheets to protected workbook

mcomp72

Active Member
Joined
Aug 14, 2016
Messages
275
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2011
Platform
  1. Windows
  2. MacOS
I have a macro-enabled workbook with about 100 users, on both Windows and Mac. I have the workbook protected so they don't accidentally delete or rename a sheet, because doing either would cause the code to no longer work properly. A couple of users have asked me about adding the ability to add a new worksheet. Would it be possible to make the plus button to the right of the sheet tabs (for New Sheet) work without changing the protection on the rest of the workbook?

Also, would it be possible to allow them to change the names of these newly added sheets, but still not allow them to change the names of the existing sheets?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I don't think so....I believe you will need to add some code into your existing macros that asks the user if they want to add a sheet, then un protect, add the sheet and reprotect.....you would then need to ensure you made the new sheet to be incorporated into whatever protections you are applying.
You could also consider only allowing this to happen for certain users....use the Environ(username) for this
 
Upvote 0

Forum statistics

Threads
1,215,456
Messages
6,124,939
Members
449,197
Latest member
k_bs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top