Protect a Tab so the Tab Can Not be Deleted

Guzzlr

Well-known Member
Joined
Apr 20, 2009
Messages
982
Office Version
  1. 2021
Platform
  1. Windows
Hello All,
If I have a tab labeled "Home", how can I lock the tab so it will not be able to be deleted, with out simply hiding it? And, I still want to be able to work on the Home Worksheet, just not be able to delete it.
Thanks
excel 2013
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Use WorkBook protection

I tried this, however, it will not let the code run. For example, I have a command button to clear the worksheet template, to start with a brand new sheet, this code will no longer clear the sheet.
Thanks
 
Upvote 0
The code can unprotect the workbook, so its thing, then re-protect.
 
Upvote 0
The code can unprotect the workbook, so its thing, then re-protect.

This is what I was thinking, code to unprotect at the beginning, and code at the end to protect. I just don't know the code with out running recorder.
This is
 
Upvote 0
This is what I was thinking, code to unprotect at the beginning, and code at the end to protect. I just don't know the code with out running recorder.
This is


Never Mind...
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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