Results 1 to 2 of 2

Excel 2010: How to get worksheet names in a list

This is a discussion on Excel 2010: How to get worksheet names in a list within the Excel Questions forums, part of the Question Forums category; I have 20+ sheets in a workbook and want to create an Index of sorts that simply tells me the ...

  1. #1
    Board Regular
    Join Date
    Apr 2009
    Posts
    385

    Default Excel 2010: How to get worksheet names in a list

    I have 20+ sheets in a workbook and want to create an Index of sorts that simply tells me the name of all the sheets that are in the workbook.

    Is there an easy way to do this in 2010 or is it just manual entry?

    I have 14 workbooks I will need to do this to, so looking for the most economical way to accomplish this.

  2. #2
    MrExcel MVP Tom Urtis's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, California USA
    Posts
    11,008

    Default Re: Excel 2010: How to get worksheet names in a list

    A macro to do this could be:

    Sub ListSheetz()
    Dim i%
    For i = 1 to sheets.count
    cells(i, 1).Value = sheets(i).name
    next i
    End Sub

    If you need this for many workbooks, it might involve opening them directly to list their sheet names, but there is a way to do that list without opening workbooks, just more code needed to do so.

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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


DMCA.com