ClipArt

U

Ulf Nilsson

Hi,

How can I determine if there is a clipart in a selection?
How can determine if the anchor is in the selection?

/ Ulf
 
J

Jonathan West

Hi Ulf,

You can check the number of Shapes or InlineShapes int the selection

Msgbox "There are " & Selection.Shapes.Count & " shapes."
Msgbox "There are " & Selection.InlineShapes.Count & " inline shapes."

If the number is greater than zero, then you have graphics of some sort
within the selection.

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 
U

Ulf Nilsson

Hi Jonathan,

Simple solution, but selection has no shapes... Or has I
missed something?

/ Ulf
 
M

Mark Tangard

Ulf,

Try Selection.ShapeRange.Count instead.

I'm surprised the code below didn't throw an error.

--
Mark Tangard, Microsoft Word MVP
Please reply only to the newsgroup, not by private email.
Note well: MVPs do not work for Microsoft.
"Life is nothing if you're not obsessed." --John Waters
 

Ask a Question

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.

Ask a Question

Top