+ Reply to Thread
Results 1 to 2 of 2

Formula to make cell equal worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    12-31-2005
    Location
    Atkins, Arkansas
    MS-Off Ver
    2013
    Posts
    63

    Formula to make cell equal worksheet

    I would like to have cell A1 equal the name of Worksheet 1. The worksheets are in date format of 9-7-10. So after formula is entered Cell A1=9-7-10 B1=9-8-10. Each cell with a value would have a sheet. It would probably be easier to look at my attatched sheet.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to make cell equal worksheet

    Hi,

    One way with the following macro

    Sub ListSheetnames()
        Dim x As Long
        For x = 1 To Sheets.Count
            Range("A1").Cells(x, 1) = Sheets(x).Name
        Next x
    End Sub
    It will also list the Totals sheet name so just delete this.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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