(VBA) Get String from Width Property

P

Pista

I need to get the string from Width Row from an Object in ShapeSheet, how do
I get it? I tried something like this:

shpWidthString = shpObj.CellsSRC(visSectionObject, visRowXFormOut,
visXFormWidth).GetFormulas

I get Run-time error '438':
Object doesn't support this property or method

Thank you for helping me, have a good day ;)
 
J

John

Hello Pista,

You need to use the Result type properties of the cell object. So if you
really want a string type then:

shpObj.CellsSRC(visSectionObject, visRowXFormOut,
visXFormWidth).ResultStr("")

or for other types look at ResultIU, Result("mm") etc. Check out Result and
visUnitCodes in help.

Best regards

John
 

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