How to tell if text in shape is overflowing / autofit

G

geejay

Hi all,

Is there a function/formula to tell if if text in shape is overflowing? I.e
if the text is outside of the shape?

I'm trying to build an autofit function which grows a shape depending upon
text.

Thanks
 
G

geejay

OK, using TextWidth(TheText) to resize a shape horizontally to fit text works
fine. Still not sure how to tell if text is overflowing or not...
 
P

Paul Herber

OK, using TextWidth(TheText) to resize a shape horizontally to fit text works
fine. Still not sure how to tell if text is overflowing or not...

Width gives you the width of the shape.
TextWidth(TheText) tells you how wide the text is.
Compare the two.
 
Top