Author Topic: Is this possible with VBA in Visio?  (Read 2330 times)

0 Members and 1 Guest are viewing this topic.

revans611

  • Newbie
  • *
  • Posts: 1
Is this possible with VBA in Visio?
« on: October 24, 2011, 10:15:09 AM »
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.)

aledlund

  • Hero Member
  • *****
  • Posts: 1412
Re: Is this possible with VBA in Visio?
« Reply #1 on: October 24, 2011, 11:14:51 AM »
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