+ Reply to Thread
Results 1 to 5 of 5

Listing worksheet names and extracting specific row data

  1. #1
    Registered User
    Join Date
    02-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Listing worksheet names and extracting specific row data

    Hi there, I wonder if you can help. I have a spreadsheet with 50 plus worksheets. I want to insert a summary sheet which list all the worksheet names except hidden sheets, and then copies the data in a row specified by a user on the summary sheet. For instance, work sheets are named A-Z and column A of each row contains the row number. On the summary sheet there is a box titled "enter row number" and user enters "100"
    List generated looks like this:
    A 100
    B 100
    C 100
    etc...

    I have the macro to list the worksheets as
    Please Login or Register  to view this content.

    but need to make it ignore hidden sheets.

    I can then either put a macro in to gather the required row info or use Lookup and if functions - whatever is easier.

    Thanks in advance for any help you can offer,
    Nina
    Last edited by boatbabe; 08-17-2011 at 12:03 PM. Reason: Added Code Tags

  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: Listing worksheet names and extracting specific row data

    Hi Nina

    One way...

    Please Login or Register  to view this content.
    Regards
    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.

  3. #3
    Registered User
    Join Date
    02-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Listing worksheet names and extracting specific row data

    That works perfectly thank you.

    I have populated the working cells to extract the data I need using VLookup, is there a way in formula to reference the Sheet name cell I have just created with the above macro?

    For instance I now have a list of sheet names in Col A, and in Col B the following formula:
    =VLOOKUP("Hours",SHEETNAME!A1:B6,100,FALSE) where SHEETNAME is got by manually typing in the worksheet name - I would instead like to reference the sheet names in Col A.

    Hope that makes sense,

    Thanks in advance
    Nina
    ps I have tried to post this several times from various pcs but keep getting a weird error message about waiting at least 30 seconds between posts - but it won't let me post anything!

  4. #4
    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: Listing worksheet names and extracting specific row data

    Hi,
    With a sheet name in A1 then:

    Please Login or Register  to view this content.
    Regards

  5. #5
    Registered User
    Join Date
    02-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Listing worksheet names and extracting specific row data

    That works perfectly, thank you

+ 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