Org chart changes in Visio 2003

P

peter.allan

Hello All,

I have created a macro which runs the Org Chart Wizard, then does some
formatting of the page, specifically it renames each page with the
name of the page's people leader.

In Visio 2002 I identified the people leader on a page by looking for
the User.ReportsTo cell in the User-defined Cells section of the
shapesheet. If I found a position shape without this cell I assumed it
was the people leader i.e. didn't report to another shape on the page.
This worked fine.

However, we have now been upgraded to Visio 2003, and when I run the
Org Chart Wizard, the cells available in the User-Defined cells
section of the shapesheet are completely different - many are missing,
including the User.ReportsTo cell, and I cannot see a suitable
alternative.

So I have 2 questions ;

1. Can anyone explain to me why User.ReportsTo no longer appears in
the shapesheet ?

and

2. Is there a better way of identifying the shape at the top of a
particular page of an org chart ?

Thanks in advance,
Peter.
 
C

Chris Roth [MVP]

Hi Peter,

I believe they have gone to storing the info in the SolutionXML of the
document. Try this little snippet and see if you get some info that makes
sense:

Debug.Print Thisdocument.SolutionXMLElement("SolutionModel")

Alternatively, you can save the file in Visio xml format (.vdx) and examine
the contents. Just look for the root data-element, which is: <SolutionXML
Name="SolutionModel">

This should help you get a start on breaking down what the new org-chart
stuff is doing.

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top