Autosize Text Box

R

Risky Dave

Hi,

I have a Visio object consisting of a circle, a text box(rectangle), another
circle and an arrow which are grouped to act as a pointer on a cause-effect
diagram.

Can someone please give me an example of the VB code that I need to have the
text box autosize according to the amount of text entered into it?

This is linked to next next question (separate posting).

TIA

Dave
 
R

Risky Dave

Al,

Thanks, some useful stuff there. It looks lilke the autosize thiongs is
actually going to be the least of my problems (just found the autosize box
object that is built in!). Given that the source data for my drawing is in
Excel, I might try and drive everything fom there (which I am used to
developing code for) rather than in Viso which i have really only dabbled
wityh in the past.

Dave
 
J

John... Visio MVP

Risky Dave said:
Hi,

I have a Visio object consisting of a circle, a text box(rectangle),
another
circle and an arrow which are grouped to act as a pointer on a
cause-effect
diagram.

Can someone please give me an example of the VB code that I need to have
the
text box autosize according to the amount of text entered into it?

This is linked to next next question (separate posting).

TIA

Dave


You do not need code to accomplish this. You can add functions to the
shapesheet that can adjust the shape size based on the text.

TextHeight(theText) and TextWidth(TheText)

TheText is a variable that represents the text within the shape.

John... Visio MVP
 

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