Advertisement
muntoo

Does Shape Exist

May 18th, 2016
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function doesShapeExist(shapeName As String, slide As Integer)
  2.     Dim s As Shape
  3.    
  4.     For Each s In ActivePresentation.Slides(slide).Shapes
  5.         If s.Name = shapeName Then
  6.             doesShapeExist = true
  7.             Exit Function
  8.         End If
  9.     Next
  10.    
  11.     doesShapeExist = false
  12. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement