Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Something similar to this not too well error-trapped macro.
Sub rename_sheet() On Error GoTo endit newname = InputBox("type a name") If newname < "" Then ActiveWorkbook.Unprotect ActiveSheet.Name = newname End If ActiveWorkbook.Protect Exit Sub endit: MsgBox "not a valid name. try again" ActiveWorkbook.Protect End Sub Gord Dibben MS Excel MVP On Sun, 20 Jul 2008 09:29:12 -0700, Roady wrote: Hi: I protected my workbook so that people cannot delete sheets. However, I want to allow them to re-name sheets. The way that I did it doesn't seem to allow both. Can you help? thank you! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving a Workbook where the worksheets are protected | Excel Worksheet Functions | |||
Naming new worksheets | Excel Discussion (Misc queries) | |||
Naming Worksheets | Excel Worksheet Functions | |||
Naming worksheets... | Excel Discussion (Misc queries) | |||
naming worksheets | Excel Worksheet Functions |