Returning selected shape from within drawing canvas

F

Fabian

I'm trying to determine the name of the currently selected shape
within a drawing canvas, but all I get is the name of the canvas
itself.

MsgBox Selection.ShapeRange.Item(1).Name
MsgBox Selection.Range.ShapeRange(1).Name

This all returns the name of the drawing canvas, although only one of
the shapes within the canvas is selected.

MsgBox Selection.ShapeRange(1).CanvasItems(1).Name

Returns the name of the first added shape in the canvas and that's not
necessarily the currently selected shape. Does anyone have any
suggestions?

Thanx, Fabian.
 

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