Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Worksheet Tab value to change automatically

  1. #1
    Board Regular
    Join Date
    May 2002
    Location
    Minnesota, USA
    Posts
    70
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I wish to Link a Worksheet Tab so that the default name (Sheet1) would change automatically to match a value in a cell. The other scenario would be to change the value of the Worksheet Tab (Sheet1) and a cell from the sheet would change automatically to match the value of the Tab.

  2. #2
    MrExcel MVP lenze's Avatar
    Join Date
    Feb 2002
    Location
    Helena, MT
    Posts
    13,690
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Right click on the WorkSheet Tab and choose View Code. Paste in this code

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$4" Then ActiveSheet.Name = Target.Value
    End Sub

    Change $A$4 to the cell of interest

  3. #3
    Board Regular
    Join Date
    May 2002
    Location
    Minnesota, USA
    Posts
    70
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thank you Lenze.. Your'e the man.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •