Solved

Make a sheet tab name equal to a cell

Posted on 2011-03-13
6
1,126 Views
Last Modified: 2012-10-11
Is there a way to make the name of a worksheet tab equal to a cell value.   Essentially I want someone to type their name in cell "A1" and then have that name become the tab name.  Is this possible?
0
Comment
Question by:Apex623
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 24

Expert Comment

by:StephenJR
ID: 35121704
Something like this?
With ActiveSheet
    .Name = .Range("A1").Value
End With

Open in new window

0
 
LVL 1

Author Comment

by:Apex623
ID: 35121707
How would this activate when they type in the cell?
0
 
LVL 24

Expert Comment

by:StephenJR
ID: 35121722
Er, well you'd have to run the macro. Is this a single sheet, any sheet...?
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 1

Author Comment

by:Apex623
ID: 35121776
Single sheet
0
 
LVL 24

Accepted Solution

by:
StephenJR earned 500 total points
ID: 35121781
In the sheet module:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$A$1" Then
    ActiveSheet.Name = Target.Value
End If

End Sub
0
 
LVL 1

Author Comment

by:Apex623
ID: 35121846
That works.  Thanks!  
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question