I want to only take action if the document contains a specific word/phrase. The first part of my macro inserts texts and then I want to check for a word to see if the macro continues. If the document already has the word I want the cursor to be at the end of the inserted text.
I don't want the specific word selected when the macro runs. Below is what I have so far but it selects the word.
Selection.HomeKey Unit:wdStory
With Selection.Find
.ClearFormatting
.Text = "Hello"
End With
If Not Selection.Find.Execute Then
Action
End If