Consulting

Results 1 to 10 of 10

Thread: Show Name of Object / Shape - PowerPoint 2003

  1. #1

    Show Name of Object / Shape - PowerPoint 2003

    I feel really stupid.

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

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

  2. #2
    VBAX Expert TrippyTom's Avatar
    Joined
    Jul 2005
    Location
    New York, NY (USA)
    Posts
    556
    Location
    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. 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)
    Office 2010, Windows 7
    goal: to learn the most efficient way

  3. #3
    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...

  4. #4
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    Try adding "Select Multiple Objects" to a toolbar
    See:
    http://www.pptalchemy.co.uk/toolbars1.html
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  5. #5
    VBAX Expert TrippyTom's Avatar
    Joined
    Jul 2005
    Location
    New York, NY (USA)
    Posts
    556
    Location
    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).
    Office 2010, Windows 7
    goal: to learn the most efficient way

  6. #6
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    You'll be wondering why the names here and the names in the custom animation pane are different next ;0)
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  7. #7
    VBAX Expert TrippyTom's Avatar
    Joined
    Jul 2005
    Location
    New York, NY (USA)
    Posts
    556
    Location
    I wasn't, but now that you mention it, WHY is that?
    I sense you already know the answer.
    Office 2010, Windows 7
    goal: to learn the most efficient way

  8. #8
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    No I don't. It's just one of microsoft's little mysteries!
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  9. #9
    Quote Originally Posted by John Wilson
    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.

  10. #10
    Quote Originally Posted by monokoi
    I feel really stupid.

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

    Couldnt find thread on this subject - please help before I have a fit !
    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:

    [vba]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
    [/vba]
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •