Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Make a sheet tab name equal to a cell

Posted on 2011-03-13
6
Medium Priority
?
1,434 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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Apex623
ID: 35121776
Single sheet
0
 
LVL 24

Accepted Solution

by:
StephenJR earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

879 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