D
Digdug
I'm trying to change the name of a worksheet by using information typed into
a cell on that worksheet, ie cell C4. I have several worksheets that I want
to apply this to in the same workbook. I have tried a macro....
Public Sub RenameSheet()
NewName = Range("C4").Value
ActiveSheet.Name = NewName
End Sub
but I cannot get this macro to work across several worksheets. I also need
this to work when the workbook is protected, which I do not think can be
done.
Is there an easier way to accomplish this, maybe by using a formula?
Thanks
a cell on that worksheet, ie cell C4. I have several worksheets that I want
to apply this to in the same workbook. I have tried a macro....
Public Sub RenameSheet()
NewName = Range("C4").Value
ActiveSheet.Name = NewName
End Sub
but I cannot get this macro to work across several worksheets. I also need
this to work when the workbook is protected, which I do not think can be
done.
Is there an easier way to accomplish this, maybe by using a formula?
Thanks