+ Reply to Thread
Results 1 to 8 of 8

Listing number of files per folder?

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    hacienda heights, ca
    MS-Off Ver
    Excel 2007 / Excel 2010
    Posts
    43

    Listing number of files per folder?

    Is there a way that I can list how many files are in each folder that is imported to my spread sheet? Can this be done to include folder size? I am new to VBA programming and trying to learn fast.

    Thank you

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Listing number of files per folder?

    Here is some VBA that allows you to pick a folder and then tells you how many files it contains:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    hacienda heights, ca
    MS-Off Ver
    Excel 2007 / Excel 2010
    Posts
    43

    Re: Listing number of files per folder?

    Is there a way to get it to print the folder name and the count number into a couple cells?

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Listing number of files per folder?

    How about:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-18-2013
    Location
    hacienda heights, ca
    MS-Off Ver
    Excel 2007 / Excel 2010
    Posts
    43

    Re: Listing number of files per folder?

    Ok cool working better. Is there a way to have it do this function with a main folder then check all of the sub folders?

  6. #6
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Listing number of files per folder?

    It might be possible using the FileSystem Object. I suggest you open a new thread and mention what we have accomplished so far.

  7. #7
    Registered User
    Join Date
    04-18-2013
    Location
    hacienda heights, ca
    MS-Off Ver
    Excel 2007 / Excel 2010
    Posts
    43

    Re: Listing number of files per folder?

    ok thank you very much i added rep to you

  8. #8
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Listing number of files per folder?

    Thank you for the feedback!

+ 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] VBA for listing Products in All Excel Files in Folder
    By e.isayev in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-16-2013, 05:26 PM
  2. Listing/Renaming Files in a folder from excel
    By Kelshaer in forum Excel Tips
    Replies: 4
    Last Post: 01-23-2013, 11:04 AM
  3. Replies: 1
    Last Post: 01-15-2013, 03:05 AM
  4. Listing files contained in a folder
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2008, 11:13 AM
  5. Periodically listing files in a folder
    By haven104 in forum Excel General
    Replies: 2
    Last Post: 01-10-2006, 05:10 AM

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