Protect a Tab so the Tab Can Not be Deleted

Guzzlr

Well-known Member
Joined
Apr 20, 2009
Messages
943
Office Version
  1. 2016
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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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,213,504
Messages
6,114,016
Members
448,543
Latest member
MartinLarkin

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