LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Wookbook naming

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
 
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
getting rid of the second wookbook version PilotsWest Excel Discussion (Misc queries) 3 January 6th 10 06:43 PM
How do pull data from more than one excel wookbook to one? Derrell Excel Worksheet Functions 1 August 14th 09 06:04 PM
Excel VBA Wookbook Routines Michael Kintner Excel Discussion (Misc queries) 1 August 7th 07 02:16 PM
Can excel send reminder emails on dates entered in a wookbook? Doubting_her_boss Excel Discussion (Misc queries) 2 October 27th 05 09:33 PM
Shared Wookbook cd02 New Users to Excel 0 August 10th 05 10:10 AM


All times are GMT +1. The time now is 12:29 AM.

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

About Us

"It's about Microsoft Excel"