Solved

Make a sheet tab name equal to a cell

Posted on 2011-03-13
6
854 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
Comment Utility
Something like this?
With ActiveSheet
    .Name = .Range("A1").Value
End With

Open in new window

0
 
LVL 1

Author Comment

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

Expert Comment

by:StephenJR
Comment Utility
Er, well you'd have to run the macro. Is this a single sheet, any sheet...?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 1

Author Comment

by:Apex623
Comment Utility
Single sheet
0
 
LVL 24

Accepted Solution

by:
StephenJR earned 500 total points
Comment Utility
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
Comment Utility
That works.  Thanks!  
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now