R
Roy Lasris
I have created the below routine:
=============
With Application.FileSearch
.NewSearch
.filename = "*.doc"
.LookIn = "c:\my documents"
.Execute SortBy:=msoSortByFileName, SortOrder:=msoSortOrderAscending
Counter = .FoundFiles.count
End With
==============
It works perfectly on 3 out my 4 installations. It will not work on my fourth
(WindowsXP pro/Word2003). It always returns "0" as the count of files, when
there are hundreds of files. What is wrong -- the macro or the computer?
=============
With Application.FileSearch
.NewSearch
.filename = "*.doc"
.LookIn = "c:\my documents"
.Execute SortBy:=msoSortByFileName, SortOrder:=msoSortOrderAscending
Counter = .FoundFiles.count
End With
==============
It works perfectly on 3 out my 4 installations. It will not work on my fourth
(WindowsXP pro/Word2003). It always returns "0" as the count of files, when
there are hundreds of files. What is wrong -- the macro or the computer?