Share via


Window.SelectedDataRecordset Property

Visio Automation Reference

Gets or sets the data recordset that is displayed on the active tab of the External Data Window in the Microsoft Office Visio user interface (UI). Read/write.

ms428318.vs_note(en-us,office.12).gif  Note
This Visio object or member is available only to licensed users of Microsoft Office Visio Professional 2007.

Version Information
 Version Added:  Visio 2007

Syntax

expression.SelectedDataRecordset

expression   An expression that returns a Window object.

Return Value
DataRecordset

Remarks

The SelectedDataRecordset property works only when the Window object represents the External Data Window. Calling the property on any other window type results in an error. The External Data Window must already be displayed in the Visio UI before you call SelectedDataRecordset.

When you set the SelectedDataRecordset property, the DataRecordset object you pass must not have been added with the visDataRecordsetNoExternalDataUI flag set.

See Also