Sub lkyy()
With ActiveDocument.Content.Find
.Execute "([!一-龥^1-^127]{1})(", , , 1, , , , , , "\1AA", 2
.Execute "([!一-龥^1-^127]{1})〔", , , 1, , , , , , "\1AB", 2
.Execute ")([^13^11])", , , 1, , , , , , "CA\1", 2
.Execute "〕([^13^11])", , , 1, , , , , , "CB\1", 2
End With
With ActiveDocument.Content.Find
.Replacement.Font.Name = "黑体"
.Execute "(A[AB])*(C[AB][^13^11])", , , 1, , , , , , , 2
End With
With ActiveDocument.Content.Find
.Replacement.Font.Name = "宋体"
.Execute "AA", , , 1, , , , , , "(", 2
.Execute "AB", , , 1, , , , , , "〔", 2
.Execute "CA", , , 1, , , , , , ")", 2
.Execute "CB", , , 1, , , , , , "〕", 2
End With
End Sub |