Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable delete sheet

I would like also to prevent user to delete some of the sheets. How to do that in excel 2010? Application.CommandBars("Ply") doesn't work any more.

like image 569
Simon Avatar asked Feb 10 '26 21:02

Simon


1 Answers

you can do this by protecting the structure of the workbook (I think that option is under Protection in the Review tab)

I believe this is the only way to actually prevent the user deleting a sheet, although it can be possible to find out using VBA Workbook events that a sheet has been deleted - See this answer by Excel MVP Colo on MerExcel.com

like image 74
Our Man in Bananas Avatar answered Feb 13 '26 17:02

Our Man in Bananas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!