M
Mark
Hello, I recently upgraded to 2007 about 8 months ago, and had not run
this report I developed since the upgrade and have since googled and
found that Application.FileSearch no longer exists. I have been trying
to use some of the code snippets to modify my existing code but
NOTHING seems to work, can anyone assist in helping me mofidy this
code?? Thanks so much in advance.
Sub CheckTextFilesForHREFs()
Globalindx = 1
'MsgBox "Press OK to begin report"
Dim WholeLine As String
Dim myPath As String, FilesInPath As String
Dim workfile As String
Dim myR As Long
Set fs = Application.FileSearch
With fs
.LookIn = "C:\Exeloncorp"
.FileName = ".html"
.SearchSubFolders = True
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) > 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
Application.ScreenUpdating = False
For i = 1 To .FoundFiles.Count
ParseURL .FoundFiles(i)
Next i
Application.ScreenUpdating = True
Else
MsgBox "There were no files found."
End If
Next
End Function
this report I developed since the upgrade and have since googled and
found that Application.FileSearch no longer exists. I have been trying
to use some of the code snippets to modify my existing code but
NOTHING seems to work, can anyone assist in helping me mofidy this
code?? Thanks so much in advance.
Sub CheckTextFilesForHREFs()
Globalindx = 1
'MsgBox "Press OK to begin report"
Dim WholeLine As String
Dim myPath As String, FilesInPath As String
Dim workfile As String
Dim myR As Long
Set fs = Application.FileSearch
With fs
.LookIn = "C:\Exeloncorp"
.FileName = ".html"
.SearchSubFolders = True
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) > 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
Application.ScreenUpdating = False
For i = 1 To .FoundFiles.Count
ParseURL .FoundFiles(i)
Next i
Application.ScreenUpdating = True
Else
MsgBox "There were no files found."
End If
Next
End Function