+ Reply to Thread
Results 1 to 3 of 3

listing files from folders

  1. #1
    Registered User
    Join Date
    07-04-2010
    Location
    Cobar, australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    listing files from folders

    I also am having an issue with getting my code to work, it worked once and then stopped and keeps giving me the error compile error: User-defined type not defined. and when you hit ok - this line is highlighted

    "Sub ListFilesInFolder(SourceFolderName As String, IncludeSubfolders As Boolean)"

    and this line in black -

    Dim FSO As Scripting.FileSystemObject

    Below is my code.
    Please Login or Register  to view this content.
    Last edited by davesexcel; 07-04-2010 at 05:57 PM. Reason: code tags required read the rules

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: listing files from folders

    Hi Suej68

    Welcome to the forum.

    Try using this code
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: listing files from folders

    Hi Suej68;

    I'm surprised that it worked once. If you ever figure out how it worked once, please post back here with it.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

+ 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