I have a list of pairs of strings contained in Excel that I am wanting to use to loop a search through a Word document that will detect if both strings appear before the next vbCr (carriage return). If both words are detected, then copy the paragraph to a seperate word document. I want to encorporate this into a windows app that i have been developing using VB.Net.
The general process is:
In Input.docx Find "stringA1"
If "stringA1" found = True Then
Find "stringB1" before next vbCr
If "stringB1" found = True Then
Copy paragraph to "Output.docx"
Excel.Range("D1").Value = "Reference Not Found"
If only scripting was that easy :o) I hope atleast that you get the general idea of what I am trying to achieve. I have attached some test data to clarify further.
Hope someone can help.