S
Scott
Using Visio 2003, I'm trying to determine if a shape object contains a
specific property, like this:
If shpObj.CellExistsU("Prop.ECAT", Visio.visExistsAnywhere) Then
Set cellObj = shpObj.CellsU("Prop.ECAT")
MsgBox "ECAT value is " & cellObj.ResultStr(Visio.visNone)
End If
The message box never appears. However, if I loop through all properties of
the shape like this, I *do* in fact see an ECAT property. 'cell' below is
an Excel cell reference:
For k = 0 To shpObj.RowCount(Visio.visSectionProp) - 1
' Get the name of the custom property
Set cellObj = shpObj.CellsSRC(Visio.visSectionProp, k, 2)
cell.Offset(0, over + 1).Value = "Property '" &
cellObj.ResultStr(Visio.visNone) & "'"
' Get the value of the custom property
Set cellObj = shpObj.CellsSRC(Visio.visSectionProp, k, 0)
cell.Offset(0, over + 2).Value =
cellObj.ResultStr(Visio.visNone)
Set cellObj = Nothing
Set cell = cell.Offset(1, 0)
Next k
specific property, like this:
If shpObj.CellExistsU("Prop.ECAT", Visio.visExistsAnywhere) Then
Set cellObj = shpObj.CellsU("Prop.ECAT")
MsgBox "ECAT value is " & cellObj.ResultStr(Visio.visNone)
End If
The message box never appears. However, if I loop through all properties of
the shape like this, I *do* in fact see an ECAT property. 'cell' below is
an Excel cell reference:
For k = 0 To shpObj.RowCount(Visio.visSectionProp) - 1
' Get the name of the custom property
Set cellObj = shpObj.CellsSRC(Visio.visSectionProp, k, 2)
cell.Offset(0, over + 1).Value = "Property '" &
cellObj.ResultStr(Visio.visNone) & "'"
' Get the value of the custom property
Set cellObj = shpObj.CellsSRC(Visio.visSectionProp, k, 0)
cell.Offset(0, over + 2).Value =
cellObj.ResultStr(Visio.visNone)
Set cellObj = Nothing
Set cell = cell.Offset(1, 0)
Next k