B
Björn
I try the following, but when sorting on LastModified it
always sorts ascending on filename. This is what i try:
With Application.FileSearch
.NewSearch
.LookIn = testpath
.SearchSubFolders = True
.FileName = *.doc"
.MatchTextExactly = True
.FileType = msoFileTypeAllFiles
.LastModified = msoLastModifiedAnyTime
End With
With Application.FileSearch
If .Execute(SortBy:=msoSortByLastModified, _
SortOrder:=msoSortOrderDescending) <> 0 Then
..
..
..
Exactly the same reults when using Ascending
/Björn
always sorts ascending on filename. This is what i try:
With Application.FileSearch
.NewSearch
.LookIn = testpath
.SearchSubFolders = True
.FileName = *.doc"
.MatchTextExactly = True
.FileType = msoFileTypeAllFiles
.LastModified = msoLastModifiedAnyTime
End With
With Application.FileSearch
If .Execute(SortBy:=msoSortByLastModified, _
SortOrder:=msoSortOrderDescending) <> 0 Then
..
..
..
Exactly the same reults when using Ascending
/Björn