In the following demonstration video I will implement a simple VBA macro that names all worksheets in Excel workbook according to the content of the each worksheet's cell A1. You can go through all worksheet objects by using For Each -loop:
Sub namesheets()
Dim s As Worksheet
For Each s In Worksheets
s.Name = s.Cells(1, 1).Value
Next
End Sub
No comments:
Post a Comment