И еще вопрос, как сделать так, чтобы он нашел Все скобки, вырезал из них Все слова и вставил в концы всех абзацев?
Может, кто поможет?

Dim i As Integer
For i = 1 To Words.Count - 2
If Words(i) = "[" And Words(i + 2) = "]" Then
Words(i + 1).Select
..............
End If
Next
End Sub
Sub doFindBracedWords()
Selection.Find.ClearFormatting
With Selection.Find
.Text = "\[*\]"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Do While Selection.Find.Execute
Selection.MoveStart wdCharacter, 1
Selection.MoveEnd wdCharacter, -1
Debug.Print Selection.Range.Text
Selection.Collapse wdCollapseEnd
Loop
End Sub
Сейчас этот форум просматривают: Google-бот и гости: 1