Home |
Search |
Today's Posts |
#11
![]() |
|||
|
|||
![]()
I pasted your code:
Private Sub Chart_Activate() Dim mycell As Range Set mycell = Sheets("Jan").Range("$Z$9") If mycell.Value = "" Then Exit Sub On Error GoTo CleanUp Application.EnableEvents = False ActiveSheet.Name = mycell.Value CleanUp: Application.EnableEvents = True End Sub into each Chart sheet code and changed the Range cell ref. Set mycell = Sheets("Jan").Range("$Z$9") Set mycell = Sheets("Jan").Range("$Z$10") Set mycell = Sheets("Jan").Range("$Z$11") Set mycell = Sheets("Jan").Range("$Z$12") etc. Thanks Bg "Gord Dibben" <gorddibbATshawDOTca wrote in message ... On Sun, 01 May 2005 17:30:48 GMT, "Bob G" wrote: You've inspired me to learn more of VBA. Me too<g Just curious............... Which event did you go with? Worksheet_Change in Jan sheet or Chart_Activate in the chart sheet? Gord |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sheet names used in formulas | Excel Discussion (Misc queries) | |||
I want to print out the sheet tabs (sheet names) | Excel Worksheet Functions | |||
Locking Sheet names in formulas | Excel Worksheet Functions | |||
How can I show sheet names in different colours | New Users to Excel | |||
Naming & renaming a sheet tab | Excel Worksheet Functions |