I have an automated organisational chart that works in Office 2003 but fails in Office 2007 on the following line:
Set shpDiagram = ActiveDocument.Shapes.AddDiagram(Type:=msoDiagramOrgChart, Left:=10, Top:=15, Width:=400, Height:=475)
Runtime error 445: Object doesn't support this action.
MSDN shows an example of this code in use in the 2007 object model, and Word help references the same code but the sample does not work.
The forum wont allow me to post a link but searching for XMLNode.FirstChild in msdn or help brings up the sample code.
Whats going on here?