What is the object's name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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/
 
Back
Top