Sub YF_Indent1F()
'
' Indent Macro
' 宏在 2004-4-6 由 Daturay 录制
'
For i = 1 To 10
Selection.Find.ClearFormatting
With Selection.Find
.Text = \"^p \"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
If Len(Selection.Text) <> 2 Then
Beep
MsgBox (\"全部处理完毕!\")
Exit Sub
End If
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeBackspace
With Selection.ParagraphFormat
.CharacterUnitFirstLineIndent = .CharacterUnitFirstLineIndent + 1
End With
Next i
End Sub