Modifica

Condividi tramite


MailMergeFields.AddFillIn(Range, Object, Object, Object) Method

Definition

Adds a FILLIN field to a mail merge main document. Returns a MailMergeField object.

public Microsoft.Office.Interop.Word.MailMergeField AddFillIn (Microsoft.Office.Interop.Word.Range Range, ref object Prompt, ref object DefaultFillInText, ref object AskOnce);
abstract member AddFillIn : Microsoft.Office.Interop.Word.Range * obj * obj * obj -> Microsoft.Office.Interop.Word.MailMergeField
Public Function AddFillIn (Range As Range, Optional ByRef Prompt As Object, Optional ByRef DefaultFillInText As Object, Optional ByRef AskOnce As Object) As MailMergeField

Parameters

Range
Range

Required Range object. The location for the FILLIN field.

Prompt
Object

Optional Object. The text that's displayed in the dialog box.

DefaultFillInText
Object

Optional Object. The default response, which appears in the text box when the dialog box is displayed. Corresponds to the \d switch for an FILLIN field.

AskOnce
Object

Optional Object. True to display the prompt only once instead of each time a new data record is merged. Corresponds to the \o switch for a FILLIN field. The default value is False.

Returns

Remarks

When updated, a FILLIN field displays a dialog box that prompts you for text to insert into the document at the location of the FILLIN field.

Use the Add(Range, Object, Object, Object) method with the Fields collection object to add a FILLIN field to a document other than a mail merge main document.

Applies to