Dropping and linking shapes to data

It is often necessary to drop multiple shapes and link each one of them to a different row in DataRecordset. For example, the following screenshot shows a document with an External Data window that contains Personnel DataRecordset. The diagram requires the Sales team to be added to the page.

Dropping and linking shapes to data

The following function, GetDataRecordset(), looks for DataRecordset with the given name in the specified document and returns it:

Dropping and linking shapes to data

This function is used by the following sub-function, DropManyLinked(), filters the Personnel

Get Mastering Data Visualization with Microsoft Visio Professional 2016 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.