Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi new to excel and just want to rename the sheet automatically using a name
in a cell on the spreadsheet. Thanks in advance |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
put this in your worksheet code module (right-click the worksheet tab and choose View Code): Private Sub Worksheet_Change(ByVal Target As Excel.Range) With Target If .Count 1 Then Exit Sub If .Address(False, False) = "A1" Then On Error Resume Next Me.Name = .Text On Error GoTo 0 End If End With End Sub Change the cell reference to suit. In article , "Tami" wrote: Hi new to excel and just want to rename the sheet automatically using a name in a cell on the spreadsheet. Thanks in advance |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Do you mean something like this ...
ActiveSheet.Name = ActiveCell.Value or something more complicated? "Tami" wrote in message ... Hi new to excel and just want to rename the sheet automatically using a name in a cell on the spreadsheet. Thanks in advance |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Private Sub Worksheet_Change(ByVal Target As Range) On Error Resume Next Me.Name = Range("A1").Value On Error GoTo 0 End Sub -- Regards, Soo Cheon Jheong _ _ ^ąŻ^ -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do i rename a sheet if the rename tab is inactive? | Excel Worksheet Functions | |||
Macro REQ: Automatically copy a template sheet and rename | Excel Worksheet Functions | |||
Move data to new sheet - rename sheet based on criteria ? | Excel Discussion (Misc queries) | |||
How do I automatically rename a sheet from the summary page? | Excel Worksheet Functions | |||
How do I automatically rename a sheet with the contents of a cell. | Excel Discussion (Misc queries) |