J
Jan DOUMEN
Ave,
When trying to check if a selected shape has a certain custom
property or not, I bumb into a problem. The code below always
seem to return 'yep', no matter if the 'Flow_ID' property exists
or not. Any suggestion on what I might be doing wrong?
Greetings,
Public Sub CheckIt()
Dim Item As Shape
If ActiveWindow.Selection.Count <= 0 Then
MsgBox "Please select a shape!"
ElseIf ActiveWindow.Selection.Count > 1 Then
MsgBox "Please select only one shape at a time!"
Else
Debug.Print ActiveWindow.Selection.Item(1).Name
Set Item = ActiveWindow.Selection(1)
With Item
If .CellExists("Prop.Flow_ID", False) Then
Debug.Print "nope"
Else
Debug.Print "yep"
End If
End With
End if
End Sub
When trying to check if a selected shape has a certain custom
property or not, I bumb into a problem. The code below always
seem to return 'yep', no matter if the 'Flow_ID' property exists
or not. Any suggestion on what I might be doing wrong?
Greetings,
Public Sub CheckIt()
Dim Item As Shape
If ActiveWindow.Selection.Count <= 0 Then
MsgBox "Please select a shape!"
ElseIf ActiveWindow.Selection.Count > 1 Then
MsgBox "Please select only one shape at a time!"
Else
Debug.Print ActiveWindow.Selection.Item(1).Name
Set Item = ActiveWindow.Selection(1)
With Item
If .CellExists("Prop.Flow_ID", False) Then
Debug.Print "nope"
Else
Debug.Print "yep"
End If
End With
End if
End Sub