assign string values to the custom property (shape data)

E

Evgeni Braverman

Hello,
I'nm facing following problem.
I have custom property called Label, and i want programmaticly to
change it by adding running numbers (ii).
I have following code:

'Read the label text
sText = vsoShape.CellsU("Prop.Label").Formula
'Write label text with addition of number
vsoShape.Cells("Prop.Label").FormulaU = "=""" & sText & CStr(ii) &
""""


But what i get is error message:
Runtime error ...
#Name?


I see that sText is at double quotation instead of single one, like:
""my text"" instead of "my text"

it works well when i set sText as constant "my constant text".

So i guess that quotation is the matter.

How can I fix this problem,

Thank you all.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top