|
想用宏替换,录制时段前段后给的是5行,录制好后却是25磅,能否批定以行为单位
Sub Macro5()
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find.Replacement.ParagraphFormat
.SpaceBefore = 25
.SpaceBeforeAuto = False
.SpaceAfter = 25
.SpaceAfterAuto = False
.LineUnitBefore = 5
.LineUnitAfter = 5
.WordWrap = True
End With
Selection.Find.Replacement.ParagraphFormat.Borders.Shadow = False
With Selection.Find
.Text = "^13第[一二三四五六七八九十]{1,3}章 *{1,8}"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchByte = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
|
|