g批注

  1. g批注

g批注

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Sub 添加批注(control As IRibbonControl) '批注-添加批注
'添加批注
Application.ScreenUpdating = False '关闭屏幕更新
Selection.Collapse Direction:=wdCollapseEnd
ActiveDocument.Comments.Add _
Range:=Selection.Range, Text:=""
Application.ScreenUpdating = True '恢复屏幕更新
End Sub
Sub 删除批注(control As IRibbonControl) '批注-删除批注
'删除批注
On Error GoTo err_msgbox
Selection.Comments(1).Delete
Exit Sub
err_msgbox:
MsgBox ("你需要先选中一个批注")
End Sub
Sub 修订上色(control As IRibbonControl)
Dim oDoc As Document
Set oDoc = Word.ActiveDocument
Dim oRevision As Revision
For Each oRevision In oDoc.Revisions
With oRevision
t = .Range.Text
.Range.HighlightColorIndex = wdYellow
End With
Next
End Sub

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 [email protected]