View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Matt Shaw Matt Shaw is offline
external usenet poster
 
Posts: 1
Default Find paragraphs in word and export to Excel

I'm looking for some sample VBA code to find certain key words in a
Word Document and for each occasion that the word appears, export the
entire sentence and the page number that the sentence appears on, to
an Excel workbook.

So for example, if the key word was "fox" and on page 4 was the
sentence : "The quick brown fox jumped over the lazy dog" - then this
entire sentence would be exported to Excel so that in column 1 was the
sentence and in column 2 would be "4" the page number.

Anyone had reason to do something similar like this?

Matt.