J
jlhamann
When I seach for a word with the code:
Selection.Find.ClearFormatting
With Selection.Find
.Text = " on"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Is there a way to determinine is the word is the last word on that line? I
want to certain words to be moved to the next line if they are at the end of
a line.
Selection.Find.ClearFormatting
With Selection.Find
.Text = " on"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Is there a way to determinine is the word is the last word on that line? I
want to certain words to be moved to the next line if they are at the end of
a line.