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?
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
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 Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
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![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks