If you run a macro containing the following code when the book manuscript is the active document, it will ask you to open the document containing the list of words and then create a new document that will contain a list of any of the words that are not in
the manuscript.
Dim source As Document, Target As Document, DocList As Document
Dim FD As Dialog
Dim i As Long
Set source = ActiveDocument
Set FD = Application.FileDialog(msoFileDialogFilePicker)
With FD
.Title = "Select the file containing the list of words."
.Filters.Clear
.Filters.Add "Word Documents", "*.doc; *.docx"
.AllowMultiSelect = False
If .Show = -1 Then
Set DocList = Documents.Open(.SelectedItems(1))
Else
MsgBox "You did not select the document containing the words."
Exit Sub
End If
End With
Set Target = Documents.Add
Target.Range.InsertAfter "The following words do not appear in the document:" & vbCr
With DocList
For i = 1 To .Paragraphs.count
If InStr(source.Range.Text, .Paragraphs(i).Range.Words(1).Text) = 0 Then
Target.Range.InsertAfter .Paragraphs(i).Range.Words(1).Text & vbCr
End If
Next i
End With