LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Bg
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sheet names used in formulas frustratedwthis Excel Discussion (Misc queries) 5 February 25th 05 01:13 PM
I want to print out the sheet tabs (sheet names) Sundus Excel Worksheet Functions 3 February 23rd 05 08:34 PM
Locking Sheet names in formulas O'C Excel Worksheet Functions 2 December 16th 04 06:31 PM
How can I show sheet names in different colours dabblerdave New Users to Excel 2 December 2nd 04 03:49 PM
Naming & renaming a sheet tab Cgbilliar Excel Worksheet Functions 1 November 7th 04 05:57 PM


All times are GMT +1. The time now is 09:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"