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.
 

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