Home Tips & Tutorials      

PowerPoint 


 Animations
 Delivery
 Design and Graphics
 General
 Troubleshooting
 VBA
 Writing and Organizing
 Articles

   How to show the names of the selected shapes in a specified slide.


Sub ShowNamesOfSelectedShapes()

On Error Resume Next

   With ActiveWindow.Selection.ShapeRange
   Dim I As Integer
     For I = 1 To .Count
       MsgBox .Item(I).Name
     Next I
   End With

End Sub


Related keywords

ActiveWindow - A read-only property that returns a DocumentWindow object that represents the active document window.
Selection - A read-only property of the DocumentWindow object that returns a Selection object that represents the selection in the specified document window.
ShapeRange - A read-only property of the Selection object that returns a ShapeRange object that represents all of the selected slide objects.
Count - A read-only property that returns the number of objects in the specified collection.
Item(Index) - A method that returns a single Shape object from the ShapeRange collection by name or index.
Name - A property of the Shape object that returns it's name.
PowerPoint Add-ins

Easily save and apply the formatting of a shape.
Create a library from your custom animations.
Pick colors from screen for your shapes.

Excel Add-ins

Find duplicates , remove characters , change case , merge cell's text.
Visually display and store in a library cell's formatting.






Home     Contact Us    

PowerPoint, Excel, Word and Access are registered trademarks of the Microsoft Corporation.