Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an existing workbook with several worksheets. I need to make the
worksheet name equal to a cell in the worksheet |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sheets(3).Name = Sheets(3).Cells(1,1).Value
This will set the name of the third sheet to whatever is in cell of that sheet. Adjust as needed. tim m wrote: I have an existing workbook with several worksheets. I need to make the worksheet name equal to a cell in the worksheet |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) If Target.Address = "$A$1" Then '<=== change to suit Sh.Name = Target.Value End If End Sub -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "tim m" wrote in message ... I have an existing workbook with several worksheets. I need to make the worksheet name equal to a cell in the worksheet |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can I make cell "yes" equal 1, "no" equal 0 | Excel Discussion (Misc queries) | |||
Make Cell Equal to File Name (not worksheet) | Excel Worksheet Functions | |||
How do I make a worksheet name equal to a cell | Excel Programming | |||
make a cell equal a worksheet name | Excel Discussion (Misc queries) | |||
can I make worksheet name equal a cell | Excel Worksheet Functions |