+ Reply to Thread
Results 1 to 2 of 2

how do I name a worksheet after a cell

  1. #1
    awatt
    Guest

    how do I name a worksheet after a cell

    Unfortunately I couldn't see the answer to a similar question posted a few
    months ago. Basically, I have an Excel model that has multiple sheets and I
    would like it such that the tabs are named automatically from a list on the
    front sheet.
    Many thanks for your help
    Andy

  2. #2
    Chip Pearson
    Guest

    Re: how do I name a worksheet after a cell

    Andy,

    Try something like the following. It will name the sheets to the
    values in A1:A3.

    Dim Ndx As Long
    For Ndx = 1 To 3
    Worksheets(Ndx).Name = Cells(Ndx, "A")
    Next Ndx


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "awatt" <[email protected]> wrote in message
    news:[email protected]...
    > Unfortunately I couldn't see the answer to a similar question
    > posted a few
    > months ago. Basically, I have an Excel model that has multiple
    > sheets and I
    > would like it such that the tabs are named automatically from a
    > list on the
    > front sheet.
    > Many thanks for your help
    > Andy




+ 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