Quantcast
Channel: Word for Developers forum
Viewing all articles
Browse latest Browse all 4350

Old vs New... (Shapes collection)

$
0
0

Before Word 2010, floating shapes displayed green little circles in the corners when you selected them. Now, they have white little squares and a pop up menu attached to them.

If you have a document set to be compatible with previous versions, you may have both types of shapes in it.

The newer ones cannot be selected with the Select Object tool. Also, the Selection pane is not available with backward compatible documents.

Finally, neither can you select both types with VBA, if you try you get an error:
Error -2147467259
"Method 'Select' of object 'ShapeRange' failed"

Is there a way to tell them apart with code? Can we differentiate between a legacy shape and a "2010 and up" one by testing some property via VBA?


Viewing all articles
Browse latest Browse all 4350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>