News:

Happy New Year!

Main Menu

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.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 177 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1064KB.
Tokens: post-login.
Cache hits: 13: 0.00117s for 26,609 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]