Accessing a shapes main text value?

Started by DaveTas, April 22, 2021, 03:49:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DaveTas

I am quite used to shapesheets and adding text fields to existing subshapes etc.

But I need to access a shapes main text value without adding a new field...  ie If I want to refer to the main shapes text from within a subshape..

Sheet!X.TheText doesn't return what you can see on the screen..   

NOTE: this shape is already linked to a database so I cannot change the object that houses the text.  It is just the standard text block for the shape, but the value doesn't appear in the shapesheet at all...


Surrogate

#1
Quote from: DaveTas on April 22, 2021, 03:49:47 AM
Sheet!X.TheText doesn't return what you can see on the screen..   
Try wrap this formula with SHAPETEXT function like this
SHAPETEXT(Sheet!X.TheText)

wapperdude

Shouldn't that be...Sheet.X!, not Sheet!X???
Visio 2019 Pro

Surrogate

Quote from: wapperdude on April 22, 2021, 01:41:15 PM
not Sheet!X???
Of course !The first time I saw this message on my phone, I didn't see the typo...

wapperdude

@ Surrogate:  I'm sure that's all it was, a typo.  Regardless, would still need the Shapetext wrapper as you indicated.
Visio 2019 Pro

Paul Herber

Is some equivalent of the Shapetext function available from VBA?
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

wapperdude

Visio 2019 Pro

Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/