Site icon bVisual

Clusters and Workstations Linked to Excel using Visio Professional

I was recently asked how to easily link an Excel worksheet that contains names of personnel sitting at workstations in clusters to a Visio floor layout. My own approach would probably have been to create an Access or SQL Server database, but I recognise that not everyone is confident about doing that, so I present a way that it can be done simply with just Excel.

The extra complication requested was the ability to easily control the visibility of specific data, so I have added an example of that into the mix.

Firstly, I mocked up a table in Excel. I decided to have separate Cluster and Workstation columns, and so I combined the two together in a column headed Location with a simple formula. I like doing this because I can then create a Pivot Table or Chart easily to give a count of workstations per cluster. I used the 1970 FA Cup winning Chelsea team for the Name and Department columns.

I then used Link Data to Shapes to select this Workstations worksheet, and dragged a row onto a simple rectangle shape. This automatically creates Shape Data rows labelled the same as the Excel worksheet column headers.

I modified the default Data Graphics in order to get the text values nicely aligned left, center, and right. Notice that I used the Text callout that can display the Label as well as the Value, for the left and right, but have chosen not to display the label, but did reverse the label position for the Location value. In fact, I had to put a space in the Label, thus overwriting [Default], to prevent the value from displaying on the left. I used Heading 2 for the Name value. I changed the Border Type to None for all three values.

So far, I have got the values that I want displayed. Now I added three Shape Data rows manually to the page. All three are defined as Boolean, when means TRUE or FALSE. If you do see the Name on the Define Shape Data dialog, then you tick Run in developer mode from File / Options / Advanced.

I then went back to edit my Data Graphic items so that I can control the display of each of these values. The Field dialog can be opened from the More Fields… option in the Data Field drop-down list.

In each case, I manually edited the formula to only display relevant value if the page Shape Data row was set to FALSE. (i.e. do not hide the value):

=IF(ThePage!Prop.HideLocationLabels,””, {Location})

Therefore, the user can select which labels to hide easily:

Finally, duplicated my rectangle to provide one for each row in my Workstation table, and dragged and dropped each row onto an individual rectangle. I then grouped the workstation rectangles for each cluster into a Container, and labelled it accordingly.

I now have data linked rows for each workstation in each cluster. These can be placed over the top of any actual desk layout, that might even be an embedded CAD file. Now whenever the Excel worksheet is updated, the Visio diagram just needs to be refreshed.

Exit mobile version