In what you wrote above, I see the findtext "olympics", how can this be findtext "anything in the excel file". Thanks again for responding and helping out.
That was in your code and I kept my version functionally identical to your version.
Any time you are developing code, it helps to have an outline of what you need the code to do. this is called an algorithm. a simple outline is one from of an algorithm. may algorithms use words from the coding language, especially in VBA because VBA uses a human language dictionary.
Your possible Algorithm:
WorkFlowOpen FindList.xls
Edit word list As needed
(Code algorithm)
Start processClick Commandbutton
Create new xls workbook(FoundList)
Open desired Word DocOpen FileDialog
'Process word list against Word Doc
Begin Process loopGet Word from word list
Begin Find Loop
Find all instances of word in Doc
If Found
Highlight Instances in Doc
copy word from FindList to new xls workbook (AKA FoundList)
End Find Loop
End Process Loop
'Save foundlist
Get new Name of FoundListUser enter name in InputBox
OR
Create Name from Doc Name, date, folder, etc
"Words Found in MyDoc.doc 11-13-2013.xls"
Open SaveAs File DialogFoundList.SaveAs New Name
Close Word Doc
Close FindList.xls
(END Algorithm)
As you study that, with the idea of customizing it for your particular needs, note that the uppermost level of the outline merely states, in the broadest terms, what to do. The next lower levels provide more details about what to do. Some outline levels may hold suggestions.
Note that there is no code in that very simple algorithm. For example you might always keep your Word Documents in a master folder "C:\Documents and Settings\DoolyJr\My Documents\Word Docs\." When you write your own algorithm, you can include in the algorithm a constant set to that value and use it in the Open File Dialog box section of the algorithm.
The purpose of an algorithm is to let you think about what the code is supposed to do without thinking about the difficulties of making the code work. However, you can and should put in as much details as you happen to think of.