Sub 添加批注(control As IRibbonControl) '批注-添加批注 '添加批注 Application.ScreenUpdating = False'关闭屏幕更新 Selection.Collapse Direction:=wdCollapseEnd ActiveDocument.Comments.Add _ Range:=Selection.Range, Text:="" Application.ScreenUpdating = True'恢复屏幕更新 EndSub Sub 删除批注(control As IRibbonControl) '批注-删除批注 '删除批注 OnErrorGoTo err_msgbox Selection.Comments(1).Delete ExitSub err_msgbox: MsgBox ("你需要先选中一个批注") EndSub Sub 修订上色(control As IRibbonControl) Dim oDoc As Document Set oDoc = Word.ActiveDocument Dim oRevision As Revision ForEach oRevision In oDoc.Revisions With oRevision t = .Range.Text .Range.HighlightColorIndex = wdYellow EndWith Next EndSub