Populating a custom shape with data from Excel

Started by wjernigan, March 23, 2016, 02:56:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wjernigan

Visio Professional 2013  and Excel 2013

I have created a custom shape.  Looks something like the image attached.
I want to populate that shape with data from different cells in Excel.
The relationship will be one row of data per shape.

I've honestly tried to find a related topic but all help points to the integration wizard, which is no help.  The wizard wants to place the entire row of data beside the object as opposed to being in the object.

Yacine

Hi Wjernigan,
It is indeed better to have one shape with several custom properties in one shape and get this "parent" shape to display its data in the sub-shapes.

Set up the parent with Application, OS, etc. as custom props.
Having selected the parent, look for its sheet name - either in the drawing explorer, or the size and position window. Remember this name (the ID).
Now select one sub-shape and insert a field with a custom formula of the form: sheet.123!prop.Application (123 being the ID of the parent) to get the value of the prop Application displayed.

HTH,
Y.
Yacine

Nikolay

I have recently done a small project for a customer with very close requirements. There I have identified the source excel cell by a custom property named 'excel cell'.  in the shape, you specify source row (name of excel row to get the data from). Then there is a small code piece that iterates over excel rows, then finds shape corresponding to the row, then sets it's text from the specified excel row cell.

Pretty easy approach, worked in my case. But this requires some coding. If you want to avoid code, you probably should follow the approach suggested by Yacine.

Please note that my approach  may be overkill in your case - in my case the cells were scattered around the excel sheet, so that sheet was not exactly a table.