Rename Protected Worksheets

G

Guest

I want to allow users to rename worksheets, but do nothing else to them.
I have programmed VBA with the "real" sheet number so that my code
referencing the sheets will not be affected.
The code protects the workbook with structure = true. Is there any way to
let users just change the names (they want to put technician names on the
sheets instead of a number assigned to each sheet). Thanks!
 
G

Guest

You could put a name change button on each sheet that calls this macro

Sub Button1_Click()

ActiveWorkbook.Unprotect
Message = "Enter new sheet name"
newname = InputBox(Message)
If newname = "" Then ActiveWorkbook.Protect: End
ActiveSheet.Name = newname
ActiveWorkbook.Protect
End Sub

Mike
 

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

Top