View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gordon[_2_] Gordon[_2_] is offline
external usenet poster
 
Posts: 211
Default sheet tab value/nav menu

Hi Corey...

Just checking: Does this code go into the sheet code, wokbook code or a
module. Also, does this work in 2007 when sheet tabs aren't visible? Will
this also work if the value in cell A1 is determined by a validation drop
down menu?

It didn't work for me...yet!

Cheers

Gordon.

"corey" wrote:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("A1").Value < "" Then ActiveSheet.Name = Range("A1").Value
End Sub

Will do the Sheet Tab Names 4 u !

"Gordon" wrote in message
...
Folks...

Bit of ambitious challenge here!

I have 15 sheets. In cell A1 of each sheet the user will enter a name eg
John. I want the sheet tab for sheet 1 to change to say John. Sheet 2 tab
say
Phil etc...

Also, in cell A2 I'm trying build a drop down navigation menu that uses
the
names of the sheet tabs?

I'm struggling at the moment! Any help appreciated...

Gordon...