![]() |
#13
|
|||
|
|||
![]()
Slaycock, Thank you for all your hard work. I am learning from what you wrote and I know I will use it someday.
Using MacroPod's suggestion, how about the following? Sub FindOnLineSix() ActiveDocument.Paragraphs(6).Range Dim myRange As range. If InStr (myRange.Text, “NRCS”) Then Debug.Print “I found Washington” If InStr (myRange.Text, “Washington”) Then Debug.Print “I found Washington” If InStr (myRange.Text, “St Louis”) Then Debug.Print “I found St Louis” If InStr (myRange.Text, “Kansas City”) Then Debug.Print “Kansas City” End Sub |
|
![]() |
||||
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 |