Accessing Custom Shape Properties from within C#

K

knack

All,

I'm trying to access custom shape proprties from within C#. I create a new
page, add shapes and would like to fill in some properties.

I believe it must have something to do with the syntax. Can someone provide
an example? I use:

shape.get_Cells("NameOfProperty").Formula to retrieve the value. Of what I
found I'll have to use FormulaU for an update.

But, I get folloing error: "Unexpected end of file."

How is the localeSpecificCellName constructed when the name of the property
is for example "NameOfProperty"?
 
D

David Parker

Did you forget the prefix Prop. ?
shape.get_Cells("Prop.NameOfProperty").Formula

Also, check that the cell exists first with
shape.CellExists("Prop.NameOfProperty",visExistsAnywhere)
 

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