+ Reply to Thread
Results 1 to 2 of 2

How to name a worksheet based on text entered in a cell

  1. #1
    Registered User
    Join Date
    06-26-2008
    Location
    Asia
    Posts
    53

    How to name a worksheet based on text entered in a cell

    Hi.

    Could Excel give a tab a name, based on values/text entered in a specific cell?
    Example:
    Sheet1 Cell A1 contains value "ABC".
    Are we able to name the Sheet 2 "ABC" by some written formulas?

    Thanks.
    Friend.

  2. #2
    Registered User
    Join Date
    03-17-2011
    Location
    GuangDong, China
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: How to name a worksheet based on text entered in a cell

    Hi,
    Formula is unable to do such process, but VBA could do it.
    Such as these code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then Sheet1.Name = Target.Value
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1