+ Reply to Thread
Results 1 to 8 of 8

Copy Paste sheet name to make list

  1. #1
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    Copy Paste sheet name to make list

    Good morning,
    I would like to create a list of all the sheet names I have in a given workbook. Is there a simple way to do this through VBA?

    Many thanks for your assistance!
    N
    Last edited by NMullis; 03-02-2009 at 04:13 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Copy Paste sheet name to make list

    See link. Any problems post back

    http://www.mvps.org/dmcritchie/excel/sheets.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    Re: Copy Paste sheet name to make list

    This helps some, but perhaps I am not understanding or using the correct code from this link. I was able to copy the name of the sheet into cell A1 of the its own sheet, but not all names into one sheet. I hope that makes sense.

    This is the code I used
    Please Login or Register  to view this content.
    But like I said, I maybe was using the wrong section as there is a lot covered there. Can you give me any futher direction to tell it copy the sheet name of each sheet into Sheet1 A1, A2, A3, etc?

    Thanks so much.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Copy Paste sheet name to make list

    Try

    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    Re: Copy Paste sheet name to make list

    I pasted this into a small workbook to test and it worked great. I pasted it into a big workbook (100+ sheets) and it ran but returned no results.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: Copy Paste sheet name to make list

    Is there a sheet 1?

    I tested on 21 sheets and worked fine

    VBA Noob

  7. #7
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    Re: Copy Paste sheet name to make list

    Picture me giving myself a major head slap! Sorry to waste your time there and thank you so much for the solutions!!

    Is today Monday? N

  8. #8
    Registered User
    Join Date
    01-14-2013
    Location
    Maine
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Copy Paste sheet name to make list

    Hello, bringing this thread back from the dead. I am trying to do this same thing but when I run the code, i get an error saying Run-time error '1004'. The cell or chart you are trying to change is protected and therefore read-only.

    None of the worksheets are protected, so I am not sure why I am getting this code?

+ 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