Prevent user from deleting a particular sheet

前端 未结 6 1294
春和景丽
春和景丽 2020-12-10 06:54

Protecting workbook structure will prevent a user from deleting sheets. But how could I (using VBA) prevent a user from deleting a particular sheet I designate? I\'

6条回答
  •  爱一瞬间的悲伤
    2020-12-10 07:11

    "there isn't an event that can be used to detect when a sheet is about to be deleted"

    Since Office 2013, it is possible with the SheetBeforeDelete event.

提交回复
热议问题