Export (0) Print
Expand All

Application.OfficeDataSourceObject Property

Office 2007
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.

Visual Basic for Applications
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



Community Additions

ADD
Show:
© 2014 Microsoft