Thank you for the response...It works fine.
But now the code creates long boxes. So, can there be a Carriage Return in
the text when it is entered programatically after every third space, and then
size the box accordingly?
Do you mean that you want to add a CR character after every 3rd space?
Erm, I suppose so, I don't *do* VB really but I'll guess that's a
CHR($13) or similar, whatever the syntax is. Maybe I've missed some
nuance of your intentions with thsi text.
You can set the shape's height and width to whatever you like via the
Width and height cells, in either immediate values in inches, mm etc
or you can use a formula to calculate the dimensions.
In formulae you can acces the text as TheText and you can guess how to
calculate the text width and height in the current font from the
formulae below. So you might want to set the shape's width to, say,
=GUARD(MAX(TEXTWIDTH(TheText)/2, 10mm))
which will break up your text into approximately 3 lines.