+ Reply to Thread
Results 1 to 3 of 3

Return full file path for files in directory

Hybrid View

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Return full file path for files in directory

    Could you point me in the right direction for code which will return the full file path of files in a directory plus the path of a sub directory files?
    Last edited by jeffreybrown; 06-03-2011 at 12:42 PM.
    HTH
    Regards, Jeff

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Return full file path for files in directory

    Hello Jeff,

    You can use the File System Object, part of the Microsoft Scripting Runtime library, to do both tasks. You can a reference in your VBA project to the library (early binding which provides Intellisense) or late bind by using...
        Set FSO = CreateObject("Scripting.FileSystemObject")
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Return full file path for files in directory

    Thanks Leith.

    That info did the trick...I found this site and with your suggestion...perfect.

    http://www.exceltip.com/st/List_file...Excel/446.html

    Thank you for your time

+ 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