MailMergeFields.AddNextIf 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.
Adds a NEXTIF field to a mail merge main document. Returns a MailMergeField object.
public Microsoft.Office.Interop.Word.MailMergeField AddNextIf (Microsoft.Office.Interop.Word.Range Range, string MergeField, Microsoft.Office.Interop.Word.WdMailMergeComparison Comparison, ref object CompareTo);
abstract member AddNextIf : Microsoft.Office.Interop.Word.Range * string * Microsoft.Office.Interop.Word.WdMailMergeComparison * obj -> Microsoft.Office.Interop.Word.MailMergeField
Public Function AddNextIf (Range As Range, MergeField As String, Comparison As WdMailMergeComparison, Optional ByRef CompareTo As Object) As MailMergeField
Parameters
- MergeField
- String
Required String. The merge field name.
- Comparison
- WdMailMergeComparison
Required WdMailMergeComparison. The operator used in the comparison.
- CompareTo
- Object
Required String. The text to compare with the contents of MergeField
.
Returns
Remarks
A NEXTIF field compares two expressions, and if the comparison is true, the next data record is merged into the current merge document.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기