Extract text from Org Chart

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

PowerPoint 2003. We've got extensive org chart material entered in Ppt
which we'd like to use in another format. How can we extract the text
from the org chart?

Thanks

Mike
 
Mike,
This should work for one org chart in 2002/2003.

Dim oOrgChtShp As PowerPoint.Shape
Dim oDgm As Diagram
Dim I As Integer

Set oOrgChtShp = ActiveWindow.Selection.ShapeRange(1)
Set oDgm = oOrgChtShp.Diagram

' Enumerate the nodes and extract the text
For I = 1 To oDgm.Nodes.Count
Debug.Print oDgm.Nodes(I).TextShape.TextFrame.TextRange.Text
Next
 

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

Back
Top