Worksheet Names is Defined by Cell value on Sheet 1 (named Summary
Say we have seven sheets and in the first sheet (does not matter what the
name is) we have:
alpha
beta
gamma
delta
zeta
eta
in cells A1 thru A6
Run this macro to re-name the following 6 sheets:
Sub needto()
Sheets(1).Activate
For i = 1 To 6
Sheets(i + 1).Name = Cells(i, 1).Value
Next
End Sub
--
Gary''s Student - gsnu200824
"NeedToKnow" wrote:
Is there a way to have a certain worksheet assume the text in a cell:
sheet 2 renaming itself to whatever is in cell a1 of Summary (formerly sheet1)
sheet 3 renaming itself to whatever is in cell a5 of Summary (formerly sheet1)
sheet 4 renaming itself to whatever is in cell a9 of Summary (formerly sheet1)
and so on...worksheets count will vary depending on projects
ALSO, automatically updating any reference to the renamed sheet throughout
the
workbook.
Thanks in advance.
|