Syntax
GetMergeField$(FieldName$)
Remarks
Returns the contents of the specified merge field in the current data record. If the main document is not the active document or FieldName$ doesn't exist, GetMergeField$() returns an empty string ("").
Example
This example displays the contents of the FirstName field for the current data record:
MsgBox GetMergeField$("FirstName")
See Also
CountMergeFields(), MergeFieldName$()