Another way:
... or![]()
Dim shp As Shape On Error Resume Next Set shp = ActiveSheet.Shapes("myPicture") On Error GoTo 0 If shp Is Nothing Then ' it doesn't exist Else ' it does End If
![]()
Dim pic As Picture On Error Resume Next Set pic = ActiveSheet.Pictures("myPicture") On Error GoTo 0 If pic Is Nothing Then ' it doesn't exist Else ' it does End If
Bookmarks