Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-12-2013, 11:09 PM
JohnWilson JohnWilson is offline All Shapes on slide Windows 7 64bit All Shapes on slide 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
All Shapes on slide Copy & Paste Shapes & Motion Paths from 1 Slide Size to Another buckaroobanzai PowerPoint 1 06-08-2012 05:32 AM
All Shapes on slide Where did map shapes go? SueK PowerPoint 1 01-20-2011 04:30 AM
All Shapes on slide Find and add new Shapes bonani PowerPoint 1 11-26-2009 06:21 PM
Shapes Will Not Display JoeTx Visio 0 03-13-2008 09:01 AM
My Shapes some appear some don't Jean-Paul Visio 0 03-01-2006 01:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft