MacroMan007

New Member
Joined
Aug 5, 2005
Messages
35
I have a question and it's probably a long shot, but maybe someone will have a suggestion I can use.

What I am trying to do, is get the Modified & Creation Date of all files in a series of folders. For instance, the files can be .pdf, .xls, .doc, .rtf and would be located: in "This Folder" and possibly subfolders of "This Folder".

\\Folder\Subfolder\Company Name\This Folder\
or
\\Folder\Subfolder\Company Name\This Folder\Pending\

Is there a way to get a list, in Excel 2003, of the filenames meeting my criteria through VBA?

Thanks in advance for your help!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Sorry, doing a "drive by" or a "mouse by" as the case may be...

Search here for threads involving usage of the FileSystemObject.

Also, root around in this part of the MSDN website:

http://msdn.microsoft.com/en-us/library/1ft05taf(VS.85).aspx

EDIT - in Excel 2003, I think you could also use the FILESEARCH object. You might have a look at that too. Note that this was taken out of Excel 2007 (and many, many users screamed about).
 
Last edited:
Upvote 0
Thanks, I did see Chip Pearson's posting, but I wasn't sure how to use it. It did look somewhat helpful. I downloaded it and I'll take a look at it again tomorrow and see if I can figure out something to use there.

I appreciate your help.
 
Upvote 0
Greg,
Thanks for your reply and I tried some code that used "FileSystemObject", but I got some errors. I'll revisit them as well.

Thanks again for your help.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top