A professional diagramming tool that helps users visualize complex information through easy-to-understand diagrams.
To automate data refresh for external data linked to shapes in Visio, you can utilize the RefreshInterval property of the DataRecordset object. By setting this property to a positive value (in minutes), you can specify how often Visio should automatically refresh the linked data. The minimum interval you can set is one minute. This will help ensure that your diagrams reflect the most current data without requiring manual intervention.
To manage the unique identifier (UID) issue, while there isn't a static name that Visio recognizes as a UID column, you can ensure that the column you want to use as a UID is consistently named across your Excel files. This can help reduce confusion during the linking process. Additionally, when you create your data recordset, ensure that you designate primary keys properly, as this can help Visio maintain the correct relationships between shapes and data rows during refresh operations.
Regarding the problem of autolinking after a refresh, it is important to understand that Visio attempts to maintain the links based on the shape IDs and the data row IDs. If shapes are not linked correctly after a refresh, it may be necessary to review how the data is structured and ensure that the primary keys are correctly assigned. This can help prevent Visio from trying to relink shapes that should not be linked.
If VBA is not an option due to security concerns, consider documenting the process for your coworkers to minimize complexity and ensure they understand how to set up the diagrams correctly from the start. This can help reduce the frustration associated with linking and refreshing data in Visio.