J
jeff_porter
Hello all,
I'm trying to write some VB code to get the value of a custom property.
I define the custom property via 'select shape' .. 'right click' ..
'shape' .. 'custom properties'.
I then set the 'Label' and the 'value'.
If I then inspect the object via its shape sheet.
I can see under the "Custom Properties" section..
Prop.Row_1 MY_LABEL1 No Formula 0 No Formula my_value1
Prop.Row_2 MY_LABEL2 No Formula 0 No Formula my_value2
Which is great, but I now want to get these values back via VB code.
I can get the custom properties via While loop and CellsExists test.
ie.
If (shp.CellExistsU("Prop.Row_1", visExistsAnywhere) = -1) Then
....
But this only allows me to get the Value in the cell, not the label.
I can't see how get the 'label' back, since the 'value' has no benefit,
unless I know what custom property is it linked to.
Anyone any ideas?
Thanks
Jeff
p.s.
shp.CellsU("Prop.Row_1").label doesn't give the label name.
shp.CellsU("Prop.Row_1").value DOES give the value.
I'm trying to write some VB code to get the value of a custom property.
I define the custom property via 'select shape' .. 'right click' ..
'shape' .. 'custom properties'.
I then set the 'Label' and the 'value'.
If I then inspect the object via its shape sheet.
I can see under the "Custom Properties" section..
Prop.Row_1 MY_LABEL1 No Formula 0 No Formula my_value1
Prop.Row_2 MY_LABEL2 No Formula 0 No Formula my_value2
Which is great, but I now want to get these values back via VB code.
I can get the custom properties via While loop and CellsExists test.
ie.
If (shp.CellExistsU("Prop.Row_1", visExistsAnywhere) = -1) Then
....
But this only allows me to get the Value in the cell, not the label.
I can't see how get the 'label' back, since the 'value' has no benefit,
unless I know what custom property is it linked to.
Anyone any ideas?
Thanks
Jeff
p.s.
shp.CellsU("Prop.Row_1").label doesn't give the label name.
shp.CellsU("Prop.Row_1").value DOES give the value.