protecting worksheet tab names

P

Paul

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
 
J

JLGWhiz

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
 
P

Paul

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Editing a Chart on a protected worksheet 3
Shared Excel worksheet 4
Help With MS Excel 2007 1
cell to worksheet 1
Tab Names 3
Excel Move or Copy Stopped Working? 0
Changing tab order of locked worksheet cells 2
worksheet change? 10

Top