View Single Post
 
Old 08-12-2013, 11:09 PM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Where do you want the shape names to end up?

Message Box?
Array?
Immediate pane?
Print on slide?
In a text file?
Somewhere else?

Example

Sub getShapeNames()
Dim oshp As Shape
Dim osld As Slide
Dim strReport As String
strReport = "Shapes On Slide" & vbCrLf & "===========" & vbCrLf & vbCrLf
On Error Resume Next
Set osld = ActiveWindow.View.Slide
If Not osld Is Nothing Then ' check slide in view
For Each oshp In osld.Shapes
strReport = strReport & oshp.Name & vbCrLf
Next oshp
If strReport = "" Then strReport = "No shapes!"
MsgBox strReport
End If
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote