views:

35

answers:

1

In Excel, I want to check if a specific cell for instance "C12" has a picture?
How could I do this?

+4  A: 

You do this by looping through Shapes collection of the worksheet, looking for a shape whose .TopLeftCell has same address as your target range.

GSerg
Is it possible to check whether that shape is picture or icon? because there are various types of shapes
Kevin Boyd
Also is there a more direct way of doing this, using a Cell and checking it for a picture.
Kevin Boyd
`.Type` property gives you the type. Please press F2 in the IDE and examine the object model. I never new answer to this question but it took me 10 seconds to look it up in the Object Browser.
GSerg