Apparently the file is a WordPerfect file, and Word doesn't have a converter for WordPerfect files available to it.
Perhaps you can overcome this by adding an error handler. In the error handler, if the Err.Descritpion contains "WPFT", then abandon the current file, and move on to the next.
Which line raises the error? (I would guess it is "Set doc = Documents.Open(...)"
Try:
Code:
Sub . . .()
On Error GoTo Er
Dim i As Integer
Dim doc As Document
Dim AnyError As Boolean
With Application.FileSearch
.NewSearch
.LookIn = "C:\Project\ProjDocs"
.SearchSubFolders = False
.FileType = msoFileTypeWordDocuments
If Not .Execute() = 0 Then
For i = 1 To .FoundFiles.Count
Set doc = Documents.Open(.FoundFiles(i))
If Not AnyError Then
Call DelimiterReplace
doc.Save
doc.Close
Else
AnyError = False ' Reset for next iteration.
End If
Set doc = Nothing
Next i
Else
MsgBox "No files matched " & .FileName
End If
End With
Rs: Exit Sub
Er: If InStr(Err.Description, "WPFT") <> 0 Then
AnyError = True
Resume Next
End If
MsgBox Err.Number & ", """ & Err.Description & """"
Resume Rs
End Sub