FormFields.Add Method
Returns a FormField object that represents a new form field added at a range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Add ( _
Range As Range, _
Type As WdFieldType _
) As FormField
'Usage
Dim instance As FormFields
Dim Range As Range
Dim Type As WdFieldType
Dim returnValue As FormField
returnValue = instance.Add(Range, Type)
FormField Add(
Range Range,
WdFieldType Type
)
Parameters
- Range
Type: Microsoft.Office.Interop.Word.Range
Required Range object. The range where you want to add the form field. If the range isn't collapsed, the form field replaces the range.
- Type
Type: Microsoft.Office.Interop.Word.WdFieldType
Required WdFieldType. The type of form field to add.
Return Value
Type: Microsoft.Office.Interop.Word.FormField