+ Reply to Thread
Results 1 to 3 of 3

List Sheet Names of Selected Excel File

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    List Sheet Names of Selected Excel File

    Hello community,

    I currently have a macro that allows users to add hyperlinks to a selected file. I've been searching and I can't find a clear way to have a msgbox, or other displays to show the user the sheet names in the selected workbook after it is selected. If anyone has any answers, or a place to find an answer I would greatly appreciate it.

    Please Login or Register  to view this content.
    So far I have been trying to explore using methods that do not involve opening the workbook first to count the number of worksheets/list worksheet names. I know it is possible with workbook.open (StrPath), however I would just like a list of the sheet names for the user to select to add to the hyperlink (ie hyperlinks.add subaddress:= ________ )

    Any information is appreciated. Thanks community!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: List Sheet Names of Selected Excel File

    Try this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: List Sheet Names of Selected Excel File

    I appreciate the quick reply! However, I don't need the sheet names of the current open/running excel sheet. I need the sheet names of the selected excel sheet in the filedialogfilepicker. I don't know of a way to do this without opening the excel file and looping through them.

    Also, I do not want them pasted/inserted into the working excel workbook/worksheet. I need the worksheets of the selected workbook (via Application.FileDialog(msofiledialogfilepicker)) displayed in a msgbox or some other prompt.

    Thank you

+ 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. How do you get a list of all the tab names in an excel file?
    By eaflynn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2013, 01:29 PM
  2. Replies: 2
    Last Post: 01-16-2012, 04:28 PM
  3. Replies: 1
    Last Post: 07-01-2009, 09:14 AM
  4. Getting a list of file names into an Excel spreadsheet
    By iterature in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2008, 07:03 AM
  5. Replies: 1
    Last Post: 08-04-2005, 04:55 AM

Tags for this Thread

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