ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Rename Worksheet without Selecting the sheet (https://www.excelbanter.com/excel-programming/379280-re-rename-worksheet-without-selecting-sheet.html)

[email protected]

Rename Worksheet without Selecting the sheet
 
Would this work?

Dim objWorksheet As Worksheet

For Each objWorksheet In ActiveWorkbook.Worksheets
objWorksheet.Name = "Your Name Here"
Next objWorksheet


JR_06062005 wrote:
Is there another way to rename a worksheet other than
ActiveWorkSheet.Name="New Name"?

I would like to rename a series of worksheets, but am not sure how to do
this without selecting each one.




All times are GMT +1. The time now is 05:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com