Marc,
Try:
Dim oShp As Shape
Dim oDgm As Diagram
Dim oNodeShp As Shape
Dim I As Integer
' Assuming that the selected shape is a diagram
Set oShp = ActiveWindow.Selection.ShapeRange(1)
Set oDgm = oShp.Diagram
For I = 1 To oDgm.Nodes.Count
' To get a reference to the shape of the current node
' Set oNodeShp = oDgm.Nodes(I).Shape
' To get the text of the current node
Debug.Print oDgm.Nodes(I).TextShape.TextFrame.TextRange.Text
Next
--
Regards,
Shyam Pillai
Toolbox:
http://skp.mvps.org/toolbox
"Marc Ridey" <(E-Mail Removed)> wrote in message
news:2814AA2A-D1DD-4AE3-9797-(E-Mail Removed)...
> I'm trying to get reformat the shapes used in a diagram in a PowerPoint
> 2003
> presentation.
>
> If I try to access .GroupItems on a shape of type msoDiagram, I get an
> Exception, both in VBA and in .NET C# that reads: This member can only be
> accessed for a group
>
> But ...
>
> In the watches window, if I place the same object, I can navigate to the
> GroupItems property and it contains correctly all the shapes of the
> diagram
> and if I modify the properties of the shapes such as colors in the watches
> window, then the diagram is changed.
>
> Is there a way to work around the exception since the data is there to be
> accessed?
>
>