Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Automatically update worksheet name
Is there a way to change the names of worksheets automatically? I use Excel
2007 for invoicing, but it's really a pain to have to rename each sheet to reflect my invoice number. Is there a formula or solution for this? Thanks! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Automatically update worksheet name
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "H5" '<== change to cell with invoice number On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then Me.Name = Target.Value End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob "JuneS" wrote in message ... Is there a way to change the names of worksheets automatically? I use Excel 2007 for invoicing, but it's really a pain to have to rename each sheet to reflect my invoice number. Is there a formula or solution for this? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Automatically update excel worksheet formula | Excel Discussion (Misc queries) | |||
how to automatically update a second worksheet when data inserted | Excel Worksheet Functions | |||
Update one worksheet tab to automatically update all other tabs? | Excel Worksheet Functions | |||
How do I automatically update my accountability worksheet from my | Excel Worksheet Functions | |||
Copy data into another worksheet and have it update automatically? | Excel Discussion (Misc queries) |