+ Reply to Thread
Results 1 to 11 of 11

How to create a list of Excel Workbooks

  1. #1
    Registered User
    Join Date
    11-23-2013
    Location
    Dubai, UAE
    MS-Off Ver
    aburashed
    Posts
    9

    How to create a list of Excel Workbooks

    Hello guys,
    I want help to make a list of all Excel Workbooks in specific folder(My Documents). And once clicked, it will open the file immediately. Please reply.

  2. #2
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: How to create a list of Excel Workbooks

    The following code will list/display the files in a directory. You would need to modify the path and the file extension.
    Click Yes to open the file; No to move to the next file.

    Not sure if this is exactly what you are looking for, but you requirements are a bit light.

    Please Login or Register  to view this content.
    If this helped, please click (*) Add Reputation

  3. #3
    Registered User
    Join Date
    11-23-2013
    Location
    Dubai, UAE
    MS-Off Ver
    aburashed
    Posts
    9

    Re: How to create a list of Excel Workbooks

    dont know how to work with codes. please help me brother.
    Last edited by aburashed; 11-27-2013 at 09:44 PM.

  4. #4
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: How to create a list of Excel Workbooks

    Open a workbook.
    Click Alt+F11 to open VBA editor
    Click Insert | Module
    Copy the code into the screen on the right (below where it says General)
    Save the file. Depending on the version, you may need to save is as a macro enabled workbook (.xlsm)
    Go back to the spreadsheet
    You can run it by clicking on the Macros icon, select file_list, and then click RUN

  5. #5
    Registered User
    Join Date
    11-23-2013
    Location
    Dubai, UAE
    MS-Off Ver
    aburashed
    Posts
    9

    Re: How to create a list of Excel Workbooks

    I select file_list and clicked run..nothing happens.

  6. #6
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: How to create a list of Excel Workbooks

    Please post your workbook where you installed the macro. It's hard to say what could be the problem

  7. #7
    Registered User
    Join Date
    11-23-2013
    Location
    Dubai, UAE
    MS-Off Ver
    aburashed
    Posts
    9

    Re: How to create a list of Excel Workbooks

    Attached is the workbook where i posted your Codes. I am sorry if i did something wrong. Expect from you to correct the issue. Thank you bro.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to create a list of Excel Workbooks

    Hi hectop,

    Try using HYPERLINK function.

    1st file your workbooks in 1 new folder (example name: "Input").
    2nd create new workbook (example name "output") work on summarizing the title of your workbooks.
    3rd Open input folder copy the address above paste in cell A1 in ouput workbook.
    4th type file extension in cell A2
    5th open this attachment sample 4.xlsx
    Last edited by reimar_rem; 11-28-2013 at 04:42 PM.

  9. #9
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: How to create a list of Excel Workbooks

    Hectop:

    used this formula:

    =HYPERLINK(CONCATENATE(A1,"/","tile of your workbook",".",A2),B3)

  10. #10
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: How to create a list of Excel Workbooks

    I tried Book1.xlsm that you posted. It works fine.
    Ensure that you modify this line to the appropriate directory
    Please Login or Register  to view this content.
    You also may have to enable macros. Check Macro Security on the Developer tab.

    I'm not sure what you're question is about the hyperlink. If you want to modify the code to create a list of excel files in the
    spreadsheet then you can use this code

    sample 4.xlsm

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to create a list of Excel Workbooks

    Imran310

    In this post the Moderator asked you "what was the purpose of that post"? I ask the same here and as i noticed you did the same to three more threads.

    So pls stop to do this as there is no sense of doing that and take a look to forum rules. Else you force us to ban you from the forum.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Replies: 1
    Last Post: 02-04-2013, 04:47 PM
  2. create several workbooks from a list of names in a worksheet
    By tutz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2012, 06:19 PM
  3. Create List Of Open Workbooks
    By SamuelT in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2009, 07:21 AM
  4. Need VB Code to Create new workbooks out of a list on one workbook
    By mrgillus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2009, 02:29 PM
  5. create list of open workbooks
    By djvice in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2008, 04:09 PM

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