Document.TrackRevisions 屬性 (Word)Document.TrackRevisions property (Word)

True 是表示 如果在指定的文件中所追蹤的變更。True if changes are tracked in the specified document. 可讀寫的 BooleanRead/write Boolean.

語法Syntax

expressionexpression. TrackRevisions

_運算式_代表**Document** 物件的變數。expression A variable that represents a Document object.

範例Example

本範例會設定使用中的文件,以進行追蹤修訂並且在螢幕上顯示修訂。This example sets the active document so that it tracks changes and makes them visible on the screen.

With ActiveDocument 
 .TrackRevisions = True 
 .ShowRevisions = True 
End With

如果未啟用追蹤修訂,本範例會插入文字。This example inserts text if change tracking isn't enabled.

If ActiveDocument.TrackRevisions = False Then 
 Selection.InsertBefore "new text" 
End If

請參閱See also

Document 物件Document Object

支援和意見反應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.