Application.OfficeDataSourceObject property (Publisher)

Returns an OfficeDataSourceObject object representing the data source in a mail merge or catalog merge operation. Read-only.

Syntax

expression.OfficeDataSourceObject

expression A variable that represents an Application object.

Return value

OfficeDataSourceObject

Example

The following example displays information about the current mail merge data source.

Dim odsoTemp As Office.OfficeDataSourceObject 
 
Set odsoTemp = Application.OfficeDataSourceObject 
 
With odsoTemp 
 Debug.Print "Connection string: " & .ConnectString 
 Debug.Print "Data source: " & .DataSource 
 Debug.Print "Table: " & .Table 
End With

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.