Automatically Update Tab Names
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Address = "$A$1" Then
Sh.Name = Target.Value
End If
End Sub
'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code
--
---
HTH
Bob
(change the xxxx to gmail if mailing direct)
"Mike512" wrote in message
...
Is there a way to automatically update a series of tab names based on the
value of a cell? I'm trying to have a series of tab names indicate dates
(ex.
1.2, 1.3, 1.4, 1.5) based on a "base" date being entered into the workbook
(ex. 1/2/07 as the base).
|