A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

protecting worksheet tab names



 
 
Thread Tools Display Modes
  #1  
Old June 22nd, 2009, 11:40 PM posted to microsoft.public.excel.misc,microsoft.public.excel.programming
Paul
external usenet poster
 
Posts: 126
Default 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


  #2  
Old June 23rd, 2009, 01:25 AM posted to microsoft.public.excel.misc,microsoft.public.excel.programming
JLGWhiz[_2_]
external usenet poster
 
Posts: 13
Default 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



  #3  
Old June 23rd, 2009, 01:46 AM posted to microsoft.public.excel.misc,microsoft.public.excel.programming
AltaEgo
external usenet poster
 
Posts: 115
Default 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

  #4  
Old June 23rd, 2009, 01:54 AM posted to microsoft.public.excel.misc,microsoft.public.excel.programming
Barb Reinhardt
external usenet poster
 
Posts: 1,381
Default 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



  #5  
Old June 23rd, 2009, 03:40 AM posted to microsoft.public.excel.misc,microsoft.public.excel.programming
Paul
external usenet poster
 
Posts: 126
Default 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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.