Hi, I'm new to using VBA but with some programming experience.
I'm a teacher, I have created a separate worksheet for each student in a workbook. I want to be able to change the tab names automatically to reflect student names held as a separate list in another worksheet.
I have found this code to change tab names to reflect the content of a cell reference but i have to update each worksheet individually. Is there any way of getting this to run automatically when I open the spreadsheet or better still, dynamically when I change the class list?
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Sh.Name = Range("$A$1")
End Sub
(A1 references the class list)
Many thanks for your help,
Andy
Bookmarks