Find This Or That On Line Six of Word Document
My friends,
I want to write a Macro for a Word Document that will find out if the 6th line on my document contains one of these:
NRCS
Washington
FSA
St Louis
Kansas City
Maybe line six would contain one of these, maybe not. If one is found, the macro should perform a particular function or go to some label. Each different result would perform a different function. If none is found, the macro would do something else, or allow control to pass to the next statement.
I could write a “find” to search the whole document, but I want to be more precise and look only on line 6. The “find” statements seem so long and awkward.
I am guessing that the answer uses a Range.
Thanks!
|