I'd better elaborate.
I have a sub coded thusly:
sub GetTextRanges(CurrShRange as shaperange, by ref tRanges as
collection)
Dim ar() As Integer
dim sh As Shape
Dim shRange As ShapeRange
For Each sh In CurrShRange
If sh.Type = msoGroup Then
ReDim ar(0 To sh.GroupItems.Count - 1)
For i = 1 To sh.GroupItems.Count
ar(i - 1) = i
Next i
Set shRange = GroupItems.shapes.range(ar)
GetTextRanges shRange, tRanges
Else
If sh.HasTextFrame Then
tRanges.Add sh.TextFrame.TextRange
End If
End If
Next sh
Exit Sub
End Sub
The purpose of this recursive sub is to drill down to all shapes in a
shaperange that contain a textframe, and to add the associated
textrange to a collection of textranges. This works fine in PPT 2003,
but in PPT 2000 however, it fails to compile, since the shapes
collection apparently has no range method in that version.
Is there a way I can code around this so that this sub will work in
both PPT versions?