Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 21
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   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
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   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 245
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   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
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   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 21
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MAKE A LIST OF NAMES FROM REPEATED NAMES IN THE SAME WORKSHEET r.kordahi Excel Discussion (Misc queries) 2 January 3rd 09 08:10 AM
Protecting worksheet Kimti Excel Worksheet Functions 1 July 6th 08 01:37 AM
Protecting Range Names Frederick Chow Excel Discussion (Misc queries) 4 March 8th 06 12:09 PM
protecting the worksheet Jezebel Excel Worksheet Functions 1 December 4th 05 08:15 AM
Protecting Worksheet Tony Excel Discussion (Misc queries) 2 May 2nd 05 01:45 PM


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

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

About Us

"It's about Microsoft Excel"