Visio Guy

Visio Discussions => Programming & Code => Topic started by: igor_bnp on May 06, 2016, 06:26:40 PM

Title: ORgChart wizard steps Replicate in VBA
Post by: igor_bnp on May 06, 2016, 06:26:40 PM
Hi All,

I currently have Access database that contains all my headcount and I use Visio OrgChart Wizard to create an org chart. I would like to be able to record a macro to do this for me but macro recorder does not seem to do anything.

I have found here a statement that pulls the interface but again all further steps are manual.
Call Application.Addons.ItemU("OrgCWiz").Run("/docopened")

The biggest pain point is when I get to setting up pages and levels of the org chart there are 25 pages to be created manually and as they almost never change I would prefer to pass it in the VBA code and never look back.

Is there a step by step code I can use to do the above? Please help... :-[
Title: Re: ORgChart wizard steps Replicate in VBA
Post by: wapperdude on May 06, 2016, 11:36:01 PM
This link might be of interest..https://blog.bvisual.net/2009/02/24/creating-an-org-chart-without-the-org-chart-wizard/.

Wapperdude
Title: Re: ORgChart wizard steps Replicate in VBA
Post by: igor_bnp on May 10, 2016, 06:37:50 PM
 :-[ Thank you but that only gets me to a prompt....I need to go beyond that  8)
Title: Re: ORgChart wizard steps Replicate in VBA
Post by: wapperdude on May 10, 2016, 11:52:31 PM
Odd, that should have worked.  Copy/paste.  Well, try this:
https://blog.bvisual.net/2009/02/24/creating-an-org-chart-without-the-org-chart-wizard/ (https://blog.bvisual.net/2009/02/24/creating-an-org-chart-without-the-org-chart-wizard/)

Tested and works.
Title: Re: ORgChart wizard steps Replicate in VBA
Post by: igor_bnp on June 07, 2016, 06:29:20 PM
Thank you