Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 853 Bytes

Word.Selection.Fields.md

File metadata and controls

44 lines (27 loc) · 853 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Selection.Fields property (Word)
vbawd10.chm158662720
vbawd10.chm158662720
Word.Selection.Fields
15060502-c0cf-1c94-93ba-0db0bb045c66
06/08/2017
medium

Selection.Fields property (Word)

Returns a read-only Fields collection that represents all the fields in the selection.

Syntax

expression. Fields

expression Required. A variable that represents a Selection object.

Example

This example adds a DATE field at the insertion point.

With Selection 
 .Collapse Direction:=wdCollapseStart 
 .Fields.Add Range:=Selection.Range, Type:=wdFieldDate 
End With

See also

Selection Object

[!includeSupport and feedback]