Automatic filling data fields

Started by Amin, July 11, 2012, 08:36:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Amin

Hello everybody,

I represent a processus on Visio 2010. 
I have to put in each task's data fields successors an predecessors of the task.
I want to know if it's possible to automatically fill the data field with the information on the connector between tasks.

Exemple:



Thank you for your help.

Jumpy

It is possible to write VBA-Code that does what you want, either everytime a connection is made or (maybe easier) once in one pass when the drawing is done. Here are some articles that should get you started:

http://www.visguy.com/2009/04/22/analyze-connectivity-between-process-flows/

http://www.visguy.com/2009/04/08/path-analysis-in-visio/


Or if you wan't do do it the other way:

http://www.visguy.com/2009/07/13/automatically-number-connect-shapes-with-code/


hth Jumpy

Amin

#2
Thank you for your help!

I managed to do what I wanted based on your usefull links.
I think this topic should be deplaced in the VBA forum

You will find my .vsd files in attachement with the VBA code.