修订对象(Word)Revision object (Word)

代表由修订标记所标记的修改。Represents a change marked with a revision mark. 修订对象是**修订** 集合的一个成员。The Revision object is a member of the Revisions collection. Revisions 集合包含某范围或文档中的所有修订标记。The Revisions collection includes all the revision marks in a range or document.

备注Remarks

使用修订(索引),其中索引是索引号,返回单个修订对象。Use Revisions (Index), where Index is the index number, to return a single Revision object. 索引号代表修订在范围或文档中的位置。The index number represents the position of the revision in the range or document. 以下示例显示活动文档第一节中第一处修订的作者姓名。The following example displays the author name for the first revision in section one of the active document.

MsgBox ActiveDocument.Sections(1).Range.Revisions(1).Author

Add 方法对 Revisions 集合无效。The Add method isn't available for the Revisions collection. 在启用修订功能时,将添加 修订 对象。Revision objects are added when change tracking is enabled. TrackRevisions 属性设置为 True 来跟踪对文档文本所做的修订。Set the TrackRevisions property to True to track revisions made to the document text. 以下示例启用修订跟踪功能并在所选内容前插入“Action”。The following example enables revision tracking and then inserts "Action " before the selection.

ActiveDocument.TrackRevisions = True 
Selection.InsertBefore "Action "

方法Methods

名称Name
AcceptAccept
RejectReject

属性Properties

名称Name
ApplicationApplication
AuthorAuthor
CellsCells
CreatorCreator
DateDate
FormatDescriptionFormatDescription
IndexIndex
MovedRangeMovedRange
ParentParent
RangeRange
StyleStyle
类型Type

另请参阅See also

Word 对象模型参考Word Object Model Reference

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.