- Sub aaaa()
- Dim i As Paragraph
- With ActiveDocument
- With .Content.Find
- .Execute "\(", , , 1, , , , , , "(", 2
- .Execute "\)", , , 1, , , , , , ")", 2
- .Execute "[^13^l]", , , 1, , , , , , "^p", 2
- .Execute "020.", , , 0, , , , , , "^p^&", 2
- .Execute "(。)*(^13)", , , 1, , , , , , "\1\2", 2
- .Execute "(^13)(020)", , , 1, , , , , , "\12\2", 2
- .Execute "())*(^13)", , , 1, , , , , , "\1\2", 2
- End With
- For Each i In .Paragraphs
- If i.Range Like "!vnd*" Then i.Range.Delete
- Next
- With .Content
- With .Find
- .Execute "([!^13]@^13)\1", , , 1, , , , , , "\1", 2
- .Execute "^p", , , 0, , , , , , "^p^p", 2
- End With
- Do While .Text Like "*" & vbCr & vbCr
- .Characters.Last.Delete
- Loop
- End With
- End With
- End Sub
复制代码 |