Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 64
Default Rename multiple sheets

How can i rename a selection of multiple sheets from a list which i
have highlighted

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Rename multiple sheets

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   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 64
Default Rename multiple sheets

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Rename multiple sheets

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I rename multiple sheets at one time in Excel? Navigator Excel Worksheet Functions 1 July 25th 06 07:51 PM
Rename Multiple Sheets from a List of Available Names prkhan56 Excel Programming 5 April 4th 05 06:07 PM
Rename sheets cottage6 Excel Programming 3 February 3rd 05 11:28 PM
Rename Sheets Kevin R Excel Programming 6 February 3rd 05 06:44 PM
Macro to Rename Multiple Sheets Alan Excel Programming 1 January 9th 04 04:38 PM


All times are GMT +1. The time now is 01:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"