I found this script on the excel forum but i get an error that the following line:
Worksheets(ShtCtr).Name = Worksheets(ShtCtr).Range("B2").Text
is a 1009 error application defined or object defined error
here is the full script:
Option Explicit
Sub RenameSheets()
Dim ShtCtr As Double
For ShtCtr = 1 To Worksheets.Count
Worksheets(ShtCtr).Name = Worksheets(ShtCtr).Range("B2").Text
Next ShtCtr
End Sub
the way i see this vba is that its supposed to extract the text in cell b2 and name the worksheet as such? Please advise on how to correct this.
M.S.
Bookmarks