+ Reply to Thread
Results 1 to 6 of 6

Compiling a list of file names(Word documents) from specific folder into excel spreadsheet

  1. #1
    Registered User
    Join Date
    04-05-2018
    Location
    Washignton State
    MS-Off Ver
    Office 365 2016
    Posts
    2

    Cool Compiling a list of file names(Word documents) from specific folder into excel spreadsheet

    Hey everyone, totally new here and looking for some BIG help.
    I understand a little about VBA and the basics of making Excel work for me, now I have a big idea.

    I would like to create a routine that automatically adds the file name(all .Doc files) from a subfolder on my computer to the Excel file we have made to track our production. We produce anywhere from 5 to 30 sheets a day per person and are hoping to have this system allow them to be updated automatically. The end goal is to see when the file was created and use the corresponding columns to track follow-up and close rates.

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Compiling a list of file names(Word documents) from specific folder into excel spreads

    Try something along the lines of:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Registered User
    Join Date
    04-05-2018
    Location
    Washignton State
    MS-Off Ver
    Office 365 2016
    Posts
    2

    Re: Compiling a list of file names(Word documents) from specific folder into excel spreads

    Thank you!! This seems to work well for importing the information. However, it does not update when I close and open the file. Is it possible to have it add the new files that we are creating daily?

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Compiling a list of file names(Word documents) from specific folder into excel spreads

    If you want it to run automatically when you open the workbook, change the macro's name to Auto_Open.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Compiling a list of file names(Word documents) from specific folder into excel spreads

    This one also gives you the date the file was created in Column B.
    Please Login or Register  to view this content.
    Last edited by bakerman2; 04-06-2018 at 01:14 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Compiling a list of file names(Word documents) from specific folder into excel spreads

    Thanks for rep+.

+ 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] List out the file names present in the folder using excel macro
    By laxmanann in forum Excel Programming / VBA / Macros
    Replies: 66
    Last Post: 04-30-2014, 01:18 AM
  2. Import tables from all Word documents within a folder into excel
    By Milk Snake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2014, 12:03 PM
  3. Import TXT files from a specific folder into Excel - TXT file names change hourly
    By jeepinjeff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2013, 04:08 AM
  4. [SOLVED] VBA - folder/file names to spreadsheet list
    By Apelcius in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2012, 12:03 PM
  5. Search a word file in a specific folder and copy text to excel
    By corinereyes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2012, 08:15 AM
  6. Replies: 2
    Last Post: 11-28-2012, 04:45 PM
  7. Performing Find loop on all Word documents in a folder, writing results to a Spreadsheet
    By fraanchtoast in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 05:02 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