Field.Previous 属性 (Word)Field.Previous property (Word)

返回集合中的上一个对象。Returns the previous object in the collection. 只读。Read-only.

语法Syntax

表达式expression. Previous

_表达式_代表字段对象的变量。expression A variable that represents a 'Field' object.

示例Example

以下示例显示活动文档中倒数第二个域的域代码。This example displays the field code of the second-to-last field in the active document.

Set aField = ActiveDocument _ 
 .Fields(ActiveDocument.Fields.Count).Previous 
MsgBox "Field code = " & aField.Code

另请参阅See also

Field 对象Field 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.