+ Reply to Thread
Results 1 to 11 of 11

Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    08-16-2013
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    4

    Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    Good morning everyone!

    I have a file that I have over 90 customer worksheets. I would like a list of all the customers that I have a worksheet for. I'm sure there is a way to make a new workbook with all the names of the worksheets that I have.

    Can anyone help with this? Greatly appreciated and would save me a lot of time!!

  2. #2
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    Almost sounds like you need a program called ListMaker which can browser hard drive folders and makes a list of the files it finds (can be set to limit only certain types like .xls) And thenonce list is made copy/paste into Cell B and add Customer names manually into Cell A.

    http://www.novatone.net/software/ListMaker.htm

    (I am in no way or means connected to the above program, I just happened to have used it previously).

  3. #3
    Registered User
    Join Date
    08-16-2013
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    The girl that previously made this file didn't have a list of the customers. She just added a worksheet with a name at the bottom and copied the form to each customer worksheet.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    This macro will list all tab names in a workbook.

    List will be added in the active sheet of workbook starting at cell A1 then A2 ..... An

    Option Explicit
    
    Sub ListOfTabs()
    Dim i As Integer
    For i = 1 To Sheets.Count
    Cells(i, "A") = Sheets(i).Name
    Next i
    End Sub
    Alf

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    Quote Originally Posted by Alf View Post
    This macro will list all tab names in a workbook.

    List will be added in the active sheet of workbook starting at cell A1 then A2 ..... An

    Option Explicit
    
    Sub ListOfTabs()
    Dim i As Integer
    For i = 1 To Sheets.Count
    Cells(i, "A") = Sheets(i).Name
    Next i
    End Sub
    Alf
    Where do you put this code? and what does the option explicit mean?

    Thanks
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  6. #6
    Registered User
    Join Date
    08-16-2013
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    macro does not work

  7. #7
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    Works for me.

    Alf

  8. #8
    Registered User
    Join Date
    08-16-2013
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    I am getting a run time error and debugger starts

  9. #9
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    Select one sheet and run macro "ListOfTabs"

    Alf
    Attached Files Attached Files

  10. #10
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    Seems there is a problem uploading files. I'll have another go at it.

    Alf
    Attached Files Attached Files

  11. #11
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: Multiple Named Worksheets. Need to make a list of ALL the names on ONE worksheet

    Where do you put this code?
    Developer tab -> "Visual Basic" -> "Insert" -> "Module" and paste code in the new "windows" that opends (check uploaded file as well).

    "Option Explicit" = "Forces explicit declaration of all variables in a file, or allows implicit declarations of variables." For a more comprehensive explanation see link

    http://msdn.microsoft.com/en-us/library/y9341s4f.aspx

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  2. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  3. [SOLVED] Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  4. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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