R
Ralle
Hello,
I try to get a shape that doesn't adapt to the text, but to get a text that
adapts to the shape size. This means, if I add a larger text the char size
will be decreased and if I add a shorter text , the char size will be
increased up to a default size.
I added this formula to the Scratch.A1 cell of a shape:
=IF(TEXTWIDTH(TheText)>Width,SETF("Char.Size",Char.Size-1
pt),SETF("Char.Size",MIN(Char.Size+1 pt,9 pt)))
Using Visio 2002 or 2003 it works fine, but using Visio 2007 I got a -401 pt
Char.Size and only a grey bar in the shape.
So I havn't any idea how to fix this.
Many thank's in advance.
Ralph
I try to get a shape that doesn't adapt to the text, but to get a text that
adapts to the shape size. This means, if I add a larger text the char size
will be decreased and if I add a shorter text , the char size will be
increased up to a default size.
I added this formula to the Scratch.A1 cell of a shape:
=IF(TEXTWIDTH(TheText)>Width,SETF("Char.Size",Char.Size-1
pt),SETF("Char.Size",MIN(Char.Size+1 pt,9 pt)))
Using Visio 2002 or 2003 it works fine, but using Visio 2007 I got a -401 pt
Char.Size and only a grey bar in the shape.
So I havn't any idea how to fix this.
Many thank's in advance.
Ralph