PDA

View Full Version : Show Name of Object / Shape - PowerPoint 2003



monokoi
02-27-2008, 02:09 PM
I feel really stupid. :motz2:

Where can I see the name of a shape/object?

Couldnt find thread on this subject - please help before I have a fit :rofl: !

TrippyTom
02-27-2008, 02:56 PM
Well, you could type something like this in the immediate window of VBA:

print ActivePresentation.Slides(1).shapes(2).Name

In this case, I am asking for the name of Shape #2 on Slide #1. My result was something archaic like "Rectangle 19". Your result may be something different. My point is, this isn't very helpful. I mean, after all, how do you know the shape your after is the 2nd shape that was added to the slide? In most cases, you don't.

You can take it a step further by writing a macro to print a list of all the shapes on the current slide. Still not very useful.

Better still, you can download an addin called StarterSet (or StarterSet Plus) from PPTOOLS (http://www.pptools.com/downloads.htm). This is a collection of very useful tools and one of them is a LAYER MANAGER that does exactly what you want. Is shows you a window of all the names of the shapes on your slide, and you can even step through them to see which ones they are. (see attached pic)

monokoi
02-27-2008, 03:03 PM
:ipray: Thank you very much for your reply. I still cant grasp that there's no right click - properites .. that'll give me the name of the object.

I'm trying to accomplish a simple multiple choice quiz with a score board. It's driving me nuts :)

Thanhfull for any pointers... :ipray:

John Wilson
03-04-2008, 03:48 AM
Try adding "Select Multiple Objects" to a toolbar
See:
http://www.pptalchemy.co.uk/toolbars1.html

TrippyTom
03-04-2008, 09:43 AM
Hah! :)

Thanks for that John. I never knew that was there. I always wondered why it wasn't part of the default buttons. Turns out it is just hidden (typical for Microsoft).

John Wilson
03-04-2008, 10:19 AM
You'll be wondering why the names here and the names in the custom animation pane are different next ;0)

TrippyTom
03-04-2008, 03:28 PM
I wasn't, but now that you mention it, WHY is that? :)
I sense you already know the answer.

John Wilson
03-05-2008, 06:26 AM
No I don't. It's just one of microsoft's little mysteries!

Tiger Chen
03-07-2008, 12:11 AM
Try adding "Select Multiple Objects" to a toolbar
See:
http://www.pptalchemy.co.uk/toolbars1.html

A good finding today.
I thought there is no way to do that in 2003, so I made an activeX control.

dumbpuppy
04-04-2008, 09:40 AM
I feel really stupid. :motz2:

Where can I see the name of a shape/object?

Couldnt find thread on this subject - please help before I have a fit :rofl: !
I am late to the game but just in case it is useful here's a piece of code I use to walk through objects on a slide:

Sub allShapesSelectName()
Dim oSh As Shape
Dim oShp As Shape
Dim r As Long
Dim lCurrSlide As Long

lCurrSlide = ActiveWindow.Selection.SlideRange.SlideIndex
MsgBox "Slide Name: " & ActivePresentation.Slides(lCurrSlide).Name
For Each oShp In ActivePresentation.Slides(lCurrSlide).Shapes
oShp.Select
r = MsgBox("Shape Name ... " & oShp.Name, vbOKCancel)
If r = 2 Then Exit For
Next oShp

End Sub

I have similar code I use for Object Types and/or Tagged shapes.

For what it's worth, I believe using Tags is and an excellent approach if your are trying to gain a dependable / predictable handle to shapes / objects.