MailMerge.DataSource property (Publisher)
Returns a MailMergeDataSource object that refers to the data source attached to a mail merge or catalog merge main publication.
Syntax
expression.DataSource
expression A variable that represents a MailMerge object.
Return value
MailMergeDataSource
Example
This example displays the path and file name of the data source attached to the active publication.
Sub DataSourceName()
With ActiveDocument.MailMerge.DataSource
If .Name <> "" Then _
MsgBox "The path and file name of the " & _
"attached data source is : " & vbCr & .Name
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.