J
James
Hi
Is there any way to detect whether a paragraph (or range) contains an object
anchor?
Thanks
Is there any way to detect whether a paragraph (or range) contains an object
anchor?
Thanks
James said:There's no Shapes collection from Range (you can get to InlineShapes but not
Shapes). Shapes is accessed via the Document or Header/Footer objects only I
think.
From the Range object, you get a ShapeRange collection, but it doesn't
contain any shapes! (I think ShapeRange only works properly from the
Selection object). I've tried testing for an error on Range.ShapeRange.Anchor
but the same error is generated if there are no shapes or if there are
multiple shapes, so it's not reliable for what I want to do.
From the Range object, you get a ShapeRange collection, but it doesn't
contain any shapes! (I think ShapeRange only works properly from the
Selection object). I've tried testing for an error on
Range.ShapeRange.Anchor but the same error is generated if there are
no shapes or if there are multiple shapes, so it's not reliable for
what I want to do.
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.