MailMergeFields.Add(Range, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a MailMergeField object that represents a mail merge field added to the data source document.
public:
Microsoft::Office::Interop::Word::MailMergeField ^ Add(Microsoft::Office::Interop::Word::Range ^ Range, System::String ^ Name);
public Microsoft.Office.Interop.Word.MailMergeField Add (Microsoft.Office.Interop.Word.Range Range, string Name);
abstract member Add : Microsoft.Office.Interop.Word.Range * string -> Microsoft.Office.Interop.Word.MailMergeField
Public Function Add (Range As Range, Name As String) As MailMergeField
Parameters
- Range
- Range
Required Range object. The range where you want the field to appear. This field replaces the range, if the range isn't collapsed.
- Name
- String
Required String. The name of the field.
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for