I want to select the string of words from the current cursor position to but not including the string "Membership Status:" Thinking easy but mind not working right now... Thanks for any help.
Sub Demo()
Const StrFnd As String = "Membership Status:"
With ActiveDocument.Range(Selection.Start, ActiveDocument.Range.End)
With .Find
.Text = StrFnd
.Execute
End With
If .Find.Found = True Then Selection.End = .Start
MsgBox Selection.Text
End With
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.