|
本帖最后由 duquancai 于 2017-5-4 23:39 编辑
没感觉有好麻烦啊????请你测试如下代码》》》》》》
Sub shishi()
Dim p As Paragraph, s As Range, r As Range, k As Range
For Each p In ActiveDocument.Paragraphs
Set r = p.Range
With r
.MoveStartUntil ChrW(8220): .Start = .Start + 1
.MoveEndUntil ChrW(8221), wdBackward: .End = .End - 1
Set s = .Duplicate
With s.Find
Do While .Execute(ChrW(8220) & "*" & ChrW(8221), , , 1)
If Not s.InRange(r) Then Exit Do
Set k = s.Duplicate
With s
.Collapse: .MoveEnd , 1: .Text = ChrW(8216)
k.Collapse 0: k.MoveStart , -1: k.Text = ChrW(8217)
.Collapse 0
End With
Loop
End With
End With
Next
End Sub
|
|