Text boxes to automatically resize

P

Patti McLaughlin

Is there a default setting available to make a new text box automatically
shrink or grow depending on the text in the box?
 
D

Dick Hamilton [MSFT]

Hi Patti,

You can get this functionaliy by adding formulas in the Text Transform
section of the ShapeSheet for the text block. In order to get this
functionality, the formulas for the TxtWidth and TxtHeight cells can be set
as follows:

TxtWidth: TEXTWIDTH(TheText)
TxtHeight: TEXTHEIGHT(TheText, TxtWidth)

This will cause Visio to dynamically resize the text block as text is
entered or when text is set via solution code or other automation. In order
for new instances of the master shape to have these formulas, the master
itself needs to be edited.
 

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