ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Automatically Update Tab Names (https://www.excelbanter.com/excel-programming/381008-re-automatically-update-tab-names.html)

Bob Phillips

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).





All times are GMT +1. The time now is 07:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com