
Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Ok, let me rephrase it.
In my document, I have several pictures.
In some of them, I have drawn some shapes.
Now I want to delete the shapes that are in the top of the pictures.
However, I have also made some shapes in the rest of the document, and I
want to keep these ones.
I guess one of the ways, is selecting the Paragraphs that contain the Inline
Shapes, and then Delete the Shapes in the Selection.
I have already created a code that selects these Paragraphs.
What I need is a code to delete the Shapes that are in this selection.
Can you help me with this?
> RRodrigues was telling us:
> RRodrigues nous racontait que :
[quoted text clipped - 3 lines]
>
> Sorry, but I don't quite get what you mean by this.
Jay Freedman - 06 Mar 2006 01:51 GMT
Use this code:
On Error Resume Next
Selection.Range.ShapeRange.Delete
It will delete any floating shapes but leave inline shapes intact.
(The On Error statement prevents a "Requested object is not available"
error if the paragraph doesn't contain any floating shapes.)
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
>Ok, let me rephrase it.
>In my document, I have several pictures.
[quoted text clipped - 15 lines]
>>
>> Sorry, but I don't quite get what you mean by this.
RRodrigues - 06 Mar 2006 08:22 GMT
Thank you! That was perfect! You're the best!
> Use this code:
>
[quoted text clipped - 31 lines]
> >>
> >> Sorry, but I don't quite get what you mean by this.