谢谢斑竹!
方法1,很好,速度很快,基本满足要求!
在斑竹代码基础上,增加、。的恢复功能,最好能利用循环恢复()()等功能,
请斑竹指教!
Sub 这个() Dim a As Range Set a = ActiveDocument.Range a.CharacterWidth = wdWidthHalfWidth Selection.WholeStory With Selection.Find .Text = ChrW(65380) .Replacement.Text = "、" End With Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find .Text = ChrW(65377) .Replacement.Text = "。" End With Selection.Find.Execute Replace:=wdReplaceAll End Sub
这样也行:
Sub Macro2() Selection.WholeStory Selection.Range.CharacterWidth = wdWidthHalfWidth
With Selection.Find .Text = ChrW(65380) .Replacement.Text = "、" End With Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find .Text = ChrW(65377) .Replacement.Text = "。" End With Selection.Find.Execute Replace:=wdReplaceAll End Sub
|