|
楼主 |
发表于 2016-4-19 23:25
|
显示全部楼层
谢谢楼上的,手动操作可以,但录制成宏后运行不起作用,这是为什么?
Sub 一句号()
'
' 一句号 宏
'
'
Selection.Find.ClearFormatting
With Selection.Find
.Text = "[一二三四五六七八九十]{1,}、?{1,20}^13"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.ClearFormatting
With Selection.Find
.Text = "[一二三四五六七八九十]{1,}?{1,3}[!^l]>。"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
End Sub
|
|