I have tried to write code to rename sheets from sheet 2 onwards based on text on A1. If A1 is blank, then sheetnot to be renamed
it would be appreciated if someone could kindly amend my code
Code:
Sub RenameSheets()
Dim I As Long
I = Sheets(2).Index.Count
I.Name = I.Range("A1")
Next I
End Sub
it would be appreciated if someone could kindly amend my code