ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Excel - Auto Updating Tab Names (https://www.scoobynet.com/computer-and-technology-related-34/268347-excel-auto-updating-tab-names.html)

velohead66 05 November 2003 10:02 PM

Is there any way a tab (ie worksheet tab) can be linked to a particular cell.

So when the cell is updated, so is the tab name ??

markr1963 05 November 2003 10:32 PM

You could try this bit of code.

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False 'stops change event repeating
'takes the value of cell A1 and renames the active sheet
ActiveWorkbook.ActiveSheet.Name = Cells(1, 1).Value
Application.EnableEvents = True
End Sub

HTH

Mark

velohead66 10 November 2003 02:40 AM

Aaah, the joys of VB.

VB, I presumme ?


All times are GMT +1. The time now is 02:12 AM.


© 2024 MH Sub I, LLC dba Internet Brands