Visio Guy

Visio Discussions => Programming & Code => Topic started by: revans611 on October 24, 2011, 03:15:09 PM

Title: Is this possible with VBA in Visio?
Post by: revans611 on October 24, 2011, 03:15:09 PM
I am completely new to Visio VBA, but I am very accomplished with Access VBA code and somewhat accomplished with VBA in Outlook and Excel.  I want to use Vision VBA to generate a "File Map" that will look very much like the tree structure in Windows Explorer.  I envision a Visio template that would contain the images for folders, etc.  The VBA code would search a given folder path (root directory) and find the path+filename for every document/file in the root directory.  Then the code would use the already present images plus drawing tools to create a Visio document containing the map (or tree structure) that is generatd from scratch every time the code is executed.  Is this possible with Visio VBA?

(I already have the code in Access (and C#) to generate all of the path+filenames and drop them into a Jet or SQL Server database.)
Title: Re: Is this possible with VBA in Visio?
Post by: aledlund on October 24, 2011, 04:14:51 PM
It's a question of layout and routing and they have some example code in the visio sdk. You also might check this out
http://visguy.com/vgforum/index.php?topic=585.msg2490#msg2490
al