NextField 方法 (Word)Selection.NextField method (Word)

选定下一个域。Selects the next field.


expression.expression. NextField

_表达式_是必需的。expression Required. 表示 Selection 对象的变量。A variable that represents a Selection object.

返回值Return value



如果此方法找到一个字段, 则返回一个field对象;如果不是, 则返回NothingIf this method finds a field, it returns a Field object; if not, it returns Nothing.


本示例更新选定内容中的下一个域。This example updates the next field in the selection.

If Not (Selection.NextField Is Nothing) Then 
End If

本示例选择选定内容中的下一个域,并在状态栏显示一条消息(如果找到了一个域)。This example selects the next field in the selection, and if a field is found, displays a message in the status bar.

Set myField = Selection.NextField 
If Not (myField Is Nothing) Then StatusBar = "Field found"

另请参阅See also

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