本帖最后由 相见是缘8 于 2019-5-8 14:59 编辑
好的。由于我水平未到,想了一个笨办法,把你和杜老师的代码合在一起,能达目的。
Sub test() With ActiveDocument .Content.Find.Execute "[^13^11]", ,, 1, , , , , , "^p", 2 .Select CommandBars.FindControl(ID:=122).Execute CommandBars.FindControl(ID:=123).Execute Dim i AsParagraph For Each i In.Paragraphs If Asc(i.Range) = 13 Then i.Range.Delete Next End With Dim p As Range Set p =ActiveDocument.Range(0, 0) With p .MoveEndUntilvbCr .Font.Bold = -1 .Font.Name ="黑体" .Font.ColorIndex= 6 .ParagraphFormat.Alignment = 1 End With End Sub
衷心感谢你和杜老师的出手相助!!!
|