What is the object's name

K

Keith

Hi
I moved to the next step of a cool project. I added a jpg object to a
Powerpoint presentation. Now, I need to find the name of the object to it
can be referenced in VBA code. When I right-click the object I don't see a
properties option. How do I find the object name?

Keith
 
J

John Wilson

If you add the "select multiple objects" tool to a toolbar it will tell you
the name of the shape. http://www.pptalchemy.co.uk/toolbars1.html

You can also name shapes yourself which is a better way to go


Sub nameme()
Dim strsname As String
On Error GoTo errhandler
If ActiveWindow.Selection.ShapeRange.Count <> 1 Then Exit Sub
strsname = InputBox("Name the selected shape")
ActiveWindow.Selection.ShapeRange.Name = strsname
Exit Sub
errhandler:
MsgBox "Did you select a shape?"
End Sub
 
D

David M. Marcovitz

Hi
I moved to the next step of a cool project. I added a jpg object to a
Powerpoint presentation. Now, I need to find the name of the object
to it can be referenced in VBA code. When I right-click the object I
don't see a properties option. How do I find the object name?

Keith

See Example 8.7 (under Examples by Chapter) on my site:
http://www.PowerfulPowerPoint.com/

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 

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