Jericho
12/15/2006 8:33:00 AM
Sub RenameWS()
Dim ws As Worksheet
For Each ws In ActiveWindow.SelectedSheets
ws.Activate
ws.Name = Range("A1").Value
Next
End Sub
Cheers,
Joerg Mochikun
<transferxxx@gmail.com> wrote in message
news:1166169505.200005.160680@j72g2000cwa.googlegroups.com...
> How can i modify macro below - to make it work for only sheets i've
> selected (group) - instead of all sheets in active workbook.
>
> Sub RenameWS()
> Dim ws As Worksheet
> For Each ws In ActiveWorkbook.Worksheets
> ws.Activate
> ws.Name = Range("A1").Value
> Next
> End Sub
>
> Thxs
>