Hello, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
I'm currently doing a project at work where I would need to identify a group of files, which have been updated in the last week, that have a specific file property. These Files would be in a mapped drive - or any sub folder of that mapped drive. <o></o>
<o></o>
I've used this code to do a similar task before: <o></o>
<o></o>
With Application.FileSearch
.LookIn = path & "\"
.FileType = msoFileTypeExcelWorkbooks
.Execute
nofiles = .FoundFiles.Count
End With<o></o>
<o></o>
but this won't check subfolders, and this time rather than just checking xls files I want it to check all files.<o></o>
<o></o>
I also need to be able to define a date range - I.E files modified in the last week. <o></o>
<o></o>
I need the macro to check that the custom file property "Processed" is currently set to 0.<o></o>
<o></o>
Then. collect the file path of all matching entries & report them in an excel file (Hyperlinked) <o></o>
<o></o>
I think its doable - although I'm not sure how efficient it will be. - None the less I'm using it with a mapped SharePoint drive & windows default functionality is not adequate for my needs! <o></o>
<o></o>
Thanks for your help<o></o>
<o> </o>
<o> </o>
<o></o>
I'm currently doing a project at work where I would need to identify a group of files, which have been updated in the last week, that have a specific file property. These Files would be in a mapped drive - or any sub folder of that mapped drive. <o></o>
<o></o>
I've used this code to do a similar task before: <o></o>
<o></o>
With Application.FileSearch
.LookIn = path & "\"
.FileType = msoFileTypeExcelWorkbooks
.Execute
nofiles = .FoundFiles.Count
End With<o></o>
<o></o>
but this won't check subfolders, and this time rather than just checking xls files I want it to check all files.<o></o>
<o></o>
I also need to be able to define a date range - I.E files modified in the last week. <o></o>
<o></o>
I need the macro to check that the custom file property "Processed" is currently set to 0.<o></o>
<o></o>
Then. collect the file path of all matching entries & report them in an excel file (Hyperlinked) <o></o>
<o></o>
I think its doable - although I'm not sure how efficient it will be. - None the less I'm using it with a mapped SharePoint drive & windows default functionality is not adequate for my needs! <o></o>
<o></o>
Thanks for your help<o></o>
<o> </o>
<o> </o>