![]() |
#1
|
|||
|
|||
![]()
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! |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
seyzna | Word | 7 | 05-22-2023 10:57 AM |
![]() |
wblock@cnu.edu | Word | 4 | 08-23-2017 06:11 PM |
![]() |
mssodium1219 | Word | 3 | 04-01-2015 04:24 AM |
![]() |
paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Word 2003 cuts the last line of my document off | wordboy9317 | Word | 0 | 10-12-2009 08:44 AM |