Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can i rename a selection of multiple sheets from a list which i
have highlighted |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Al,
How can i rename a selection of multiple sheets from a list which i have highlighted How have you highlighted the sheets and how are they to be renamed? --- Regards, Norman "al" wrote in message oups.com... How can i rename a selection of multiple sheets from a list which i have highlighted |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Eg: From sheet "List":
A1:RenameA A2:RenameB A3:RenameC Selected sheet: Sheet 1, sheet2, sheet3 But i wanted to have it flexible - working on selected sheets & cell ie:Change name of selected sheets to selected cells value thxs |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Al,
Try something like: '================ Public Sub Tester01() Dim WB1 As Workbook Dim WB2 As Workbook Dim SH As Worksheet Dim rng As Range Dim i As Long Set WB1 = Workbooks("Book1.xls") Set WB2 = Workbooks("Book2.xls") With WB2.Sheets("Sheet1") Set rng = .Range("A1", .Range("A1").End(xlDown)) End With For Each SH In WB1.Windows(1).SelectedSheets i = i + 1 SH.Name = rng(i).Value Next End Sub '<<================ Note that no error checking is included. --- Regards, Norman "al" wrote in message oups.com... Eg: From sheet "List": A1:RenameA A2:RenameB A3:RenameC Selected sheet: Sheet 1, sheet2, sheet3 But i wanted to have it flexible - working on selected sheets & cell ie:Change name of selected sheets to selected cells value thxs |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I rename multiple sheets at one time in Excel? | Excel Worksheet Functions | |||
Rename Multiple Sheets from a List of Available Names | Excel Programming | |||
Rename sheets | Excel Programming | |||
Rename Sheets | Excel Programming | |||
Macro to Rename Multiple Sheets | Excel Programming |