Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Cell and tab naming
Is there any way to make a tab take on the name of a given cell automatically?
(Ex. If 1 enter Joe in A-1 a specific tab will be named Joe) |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Cell and tab naming
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "H1" '<== change to suit On Error GoTo ws_exit Application.EnableEvents = False If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then With Target Me.Name = .Value End With 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 (there's no email, no snail mail, but somewhere should be gmail in my addy) "bpoland58" wrote in message ... Is there any way to make a tab take on the name of a given cell automatically? (Ex. If 1 enter Joe in A-1 a specific tab will be named Joe) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
tab naming from a set cell | Excel Discussion (Misc queries) | |||
Naming a cell | Excel Worksheet Functions | |||
Naming The Tabsheet from a cell | Excel Discussion (Misc queries) | |||
What is wrong with naming a cell as c? | Excel Discussion (Misc queries) | |||
Naming a cell | Excel Worksheet Functions |