+ Reply to Thread
Results 1 to 2 of 2

Thread: Formula to make cell equal worksheet

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

    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 Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    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

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my 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.2.0