ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   protecting worksheet tab names (https://www.excelbanter.com/excel-discussion-misc-queries/234617-protecting-worksheet-tab-names.html)

Paul

protecting worksheet tab names
 
I have a worksheet that is Protected, but it seems that users are still able
to change the name of the worksheet by double clicking on the tab name. Is
there a way to prevent users from changing the tab name when the sheet is
protected?

Thanks in advance,

Paul



JLGWhiz[_2_]

protecting worksheet tab names
 
One way is to put code something like this in the Sheet code module.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveSheet.Name < "Sheet1" Then
ActiveSheet.Name = "Sheet1"
End If
End Sub




"Paul" wrote in message
...
I have a worksheet that is Protected, but it seems that users are still
able to change the name of the worksheet by double clicking on the tab
name. Is there a way to prevent users from changing the tab name when the
sheet is protected?

Thanks in advance,

Paul




AltaEgo

protecting worksheet tab names
 
Protect your workbook in addition to any worksheets.
--
Steve

"Paul" wrote in message
...
I have a worksheet that is Protected, but it seems that users are still
able to change the name of the worksheet by double clicking on the tab
name. Is there a way to prevent users from changing the tab name when the
sheet is protected?

Thanks in advance,

Paul


Barb Reinhardt

protecting worksheet tab names
 
Have you considered using Worksheet codenames? Read here for more info.

http://www.cpearson.com/excel/codemods.htm


"Paul" wrote:

I have a worksheet that is Protected, but it seems that users are still able
to change the name of the worksheet by double clicking on the tab name. Is
there a way to prevent users from changing the tab name when the sheet is
protected?

Thanks in advance,

Paul




Paul

protecting worksheet tab names
 
Good suggestions, everyone. You've given me a simple solution to my
problem, as well as additional information that I can investigate further.

My thanks to JLGWhiz, AltaEgo and Barb Reinhardt.

Paul




All times are GMT +1. The time now is 11:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com