Shape click opens external data tab

467 Views Asked by At

I am trying to get my visio to be able to open a certain external data tab when a certain shape is clicked. I have found how to link the data from a specific row to a shape but not the other way around. Is this even possible?

1

There are 1 best solutions below

0
On

It looks like this will help you VISIO - highlight specific row in the data file when clicking on the corresponding shape in Visio.

Some of the highlights include: The way to gain access to that window is to loop through each of the ActiveWindow.Windows. When you come across one that has the ID of visWinIDExternalData then you can control the Window.SelectedDataRecordset and Window.SelectedDataRowID properties. The code left by the Microsoft MVP in that forum also includes how to get the DataRecordsetID and DataRowID from the selected shape thus enough data is available to provide the window with the selection that you desire.

Additional resources:

Shape.GetLinkedDataRow Method (Visio)

Shape.GetLinkedDataRecordsetIDs Method (Visio)

Window.SelectedDataRecordset Property (Visio)

Window.SelectedDataRowID Property (Visio)