本帖最后由 小花鹿 于 2019-3-24 21:36 编辑
Sub delete()
With ActiveDocument.Content.Find
.Execute ChrW(61623), , , 1, , , , , , "", 2 '一种特殊字符,显示为一个圆点
.Execute "^11", , , 1, , , , 0, , "^p", 2 '软回车变为硬回车
.Execute "^13", , , 1, , , , 0, , "^p", 2 '有时光标可移到硬回车后面,可用这种方法解决
.Execute "^p^w", , , 0, , , , 0, , "^p", 2 '删除段前空白
.Execute "^w^p", , , 0, , , , 0, , "^p", 2 '删除段后空白
.Execute "^13{1,}", , , 1, , , , 0, , "^p", 2 '删除空行
End With
End Sub
Sub 答案换行()
With ActiveDocument.Content.Find
.Execute "[A-E]、", , , 1, , , , 0, , "^13^&", 2
End With
End Sub
|