Does Shape Exist

muntoo May 18th, 2016 193 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
  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
  11.     doesShapeExist = false
  12. End Function
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand