M
Misha
Hello!
The following macro (see below) works well in Microsoft
Word 2002 on a Windows XP machine. The same macro fails
to return results (e.g. files found) when taken to an
identical machine, but running Microsoft Word 2002 with
Service Pack 2. No information was found in MSDN
knowledge base. I would appreciate any suggestions on how
to work around this problem.
Thank you!
Misha
------------
VBA MACRO:
------------
Sub Test()
Dim fs As Object
Set fs = Application.FileSearch
With fs
.LookIn = "C:\temp\"
.FileName = "*.*"
.SearchSubFolders = True
.FileType = msoFileTypeAllFiles
.Execute
End With
MsgBox "Files Found = " & fs.FoundFiles.Count
End Sub
The following macro (see below) works well in Microsoft
Word 2002 on a Windows XP machine. The same macro fails
to return results (e.g. files found) when taken to an
identical machine, but running Microsoft Word 2002 with
Service Pack 2. No information was found in MSDN
knowledge base. I would appreciate any suggestions on how
to work around this problem.
Thank you!
Misha
------------
VBA MACRO:
------------
Sub Test()
Dim fs As Object
Set fs = Application.FileSearch
With fs
.LookIn = "C:\temp\"
.FileName = "*.*"
.SearchSubFolders = True
.FileType = msoFileTypeAllFiles
.Execute
End With
MsgBox "Files Found = " & fs.FoundFiles.Count
End Sub