Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Make a sheet tab name equal to a cell

Posted on 2011-03-13
6
Medium Priority
?
1,311 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

722 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