Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is there any way I can put names in a range on one sheet and then
automatically rename sheets with the names listed in the range without manually renaming each sheet -- gazza |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
use macro
eg: u have 5 sheets in a workbook sheet1 A1 to A5 values are New Name1 New Name2 New Name3 New Name4 New Name5 according to that if you want change sheet name, use below mentioned code: Sub change_sheet_Name() Dim i As Integer For i = 1 To 5 ' or you can use thisworkbook.sheets.count ThisWorkbook.Sheets(i).Name = ThisWorkbook.Sheets(1).Range("A" & i).Value Next i End Sub Note: cell values should be unique PLS DO RATE "gazza" wrote: Is there any way I can put names in a range on one sheet and then automatically rename sheets with the names listed in the range without manually renaming each sheet -- gazza |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
For Each sh in Activeworkbook.Worksheets
i = i + 1 sh.Name = Cells(i,"A").Value Next sh assumes the names are in A1:An on the active worksheet -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "gazza" wrote in message ... Is there any way I can put names in a range on one sheet and then automatically rename sheets with the names listed in the range without manually renaming each sheet -- gazza |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
'assumes sheet number and list are the same number. 5 sheets & 5 names
Sub nametabs() For i = 2 To Cells(Rows.Count, "a").End(xlUp).Row Sheets(i).Name = Cells(i, "a") Next End Sub -- Don Guillett SalesAid Software "gazza" wrote in message ... Is there any way I can put names in a range on one sheet and then automatically rename sheets with the names listed in the range without manually renaming each sheet -- gazza |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VB code to copy sheet format to another sheet | Excel Discussion (Misc queries) | |||
same range, multiple sheets, different sorts, help please! | Excel Worksheet Functions | |||
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? | Excel Worksheet Functions | |||
Naming a range | Excel Discussion (Misc queries) | |||
macro help | Excel Discussion (Misc queries) |