C
Caio Milani
Hi,
I am trying to access textrange.text property inside a msoSmartArt
if I use the code below I get
"member can only be accessed for a single shape" at Debug.print line
For Each oShp In oSld.Shapes
With oShp
If .Type = msoSmartArt Then
For x = 1 To .GroupItems.Count
With .GroupItems(x)
If .HasTextFrame Then
If .TextFrame.HasText Then
Debug.Print .TextFrame.TextRange.text
End If
End If
End With
Next x
End If
The .GroupItems(x).TextFrame.TextRange.Count returns 3. At the locals window
a can see that each of these 3 object refers to each line of text inside the
shape.
How do I access the collection members?
I tried
..GroupItems(x).TextFrame.TextRange(1).TextRange.text and it fails.
I am trying to access textrange.text property inside a msoSmartArt
if I use the code below I get
"member can only be accessed for a single shape" at Debug.print line
For Each oShp In oSld.Shapes
With oShp
If .Type = msoSmartArt Then
For x = 1 To .GroupItems.Count
With .GroupItems(x)
If .HasTextFrame Then
If .TextFrame.HasText Then
Debug.Print .TextFrame.TextRange.text
End If
End If
End With
Next x
End If
The .GroupItems(x).TextFrame.TextRange.Count returns 3. At the locals window
a can see that each of these 3 object refers to each line of text inside the
shape.
How do I access the collection members?
I tried
..GroupItems(x).TextFrame.TextRange(1).TextRange.text and it fails.