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