In Excel we have the "Name Box" in the upper-left side, but I could not find a way to retrieve the name of a shape in Word. How do I do that?
There are two types of shapes in MS Word- InlineShapes and Shapes. It's quite easy to check name of shape object with some VBA code:
? Selection.ShapeRange.Name
InlineShape doesn't have name property therefore you can't check it's name until you promote your InlineShape to Shape type object.
From Microsoft Word 2010 onwards (2010, 2013 and 2016) there is an "Selection Pane" in Microsoft Word.
On the selection pane the Microsoft Word InlineShapes as well as the Shapes are listed and named. Clicking on one of the shape names allows you to change them.
You can find the Selection Pane in the menu under

For older Microsoft Word (2003, 2007) versions use the VBA approach (?Selection.ShapeRange.Name) as Kazimierz Jawor posted as an other answer to this question: https://stackoverflow.com/a/17680650/1306012
?Selection.ShapeRange.Name in the immediate window to get the shape nameIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With