Probably a very stupid question but I can't figure how to rename an object in PowerPoint.. For example, all my Graphs are called by default "Graph 1" etc. Could someone help me on that? Thanks!
-
1Possible duplicate of [How to name an object within a PowerPoint slide?](http://stackoverflow.com/questions/3074209/how-to-name-an-object-within-a-powerpoint-slide) – alextansc Jan 24 '16 at 01:55
3 Answers
In PowerPoint 2007 you can do this from the Selection pane.
To show the Selection pane, click on the Home tab in the ribbon, then click on Arrange and then 'Selection Pane...' at the bottom. The Selection pane will open on the right. (Or press CTRL+F10)
To rename an object, first select the object and then double click on the object name in the Selection pane and you will be able to type the new object name.

- 1
- 1

- 74,861
- 18
- 132
- 169
-
-
This saved my LIFE. Why the hell is that so hidden. When playing around with +10 animations and they are all called: group1, group2 etc. MS need to step up here. – Syska Dec 06 '11 at 21:53
-
5For me - in 2010 - I used Home > Editing Section > Select > Selection Pane. But thanks for the answer, without which I wouldn't have known where to start. – Mark Ireland Feb 01 '13 at 17:01
-
For Powerpoint Office 365 (V16) (circa 2019): Home > Editing Section > Select > Selection Pane or ALT + F10. Handy little keyboard shortcut. :-) – HumbleBeginnings Sep 20 '19 at 16:05
(This answer assumes you are merely assigning more meaningful names during development, so your other code that references the objects can be more readable).
Put the code below into a sub, then run it from the slide in question. Each shape will be selected in turn, so you can see what shape is being referenced. An input box will tell you the current name and ask you for a new name. If you cancel or OK a zero-length input, the old name will stay in place. There is no name entry validation in this code, so be sure you type only valid names. After running it once, you can run it again just to check that the names you typed in the first round were applied to the object you intended.
The loop will cover all objects on the current slide, so if you want to process multiple slides, you have to run this separately on each slide. Every object on the slide is considered: title, drawing objects, groups, embedded pictures, equations, etc. etc. - just don't type a new name for objects that you don't care.
After your development is finished, best hide (Private Sub) or erase this code, so your users don't change object names by mistake.
Dim s As Integer, NewName As String
With ActiveWindow.Selection.SlideRange
For s = 1 To .Shapes.Count
.Shapes(s).Select ' So you can see the object in question
NewName = InputBox(.Shapes(s).Name) ' Tell what current name it is and ask for new name
If Len(NewName) > 0 Then .Shapes(s).Name = NewName ' If you typed a new name, apply it
Next s ' 1 To .Shapes.Count
End With ' ActiveWindow.Selection.SlideRange

- 245
- 1
- 3
- 8
-
OMG, you can run code in PowerPoint? Can you provide some references as per how to run this script? You say “run it from the slide” by clicking…? – Atcold Mar 25 '21 at 12:37
Thanks for your help but actually I am just doing it using VBA...
ActiveWindow.Selection.ShapeRange(1).Name = "newname"
Cheers

- 18,861
- 7
- 35
- 55