Discussion:
Text-Alignment in VBA
(too old to reply)
jweiss
2005-03-11 05:14:57 UTC
Permalink
Hi,
knows someone how to align text of variable length to the bottom of a textbox?

In designmode this is possible by "formating textfield/textfield/adjustment
(top, middle, Bottom). But I cant find the tight property to do this within my
code

Set FrmName = ThisDocument.Pages(PgCount).Shapes.AddTextbox _
(Orig, LeftX, TopY, WidthX, HightY)

With FrmName.TextFrame.TextRange
.ParagraphFormat.TextStyle = RTrim(MyFrame(N).FrmParFormat)
.Text = Fill
. ? ? ? ?
End With

Thank you for your assistance in advance.

Joachim
Ed Bennett
2005-03-11 22:14:21 UTC
Permalink
Post by jweiss
In designmode this is possible by "formating
textfield/textfield/adjustment (top, middle, Bottom). But I cant find
the tight property to do this within my code
You want .TextFrame.VerticalTextAlignment.
--
Ed Bennett - MVP Microsoft Publisher
jweiss
2005-03-13 20:53:39 UTC
Permalink
It works fine. Thank you very much!
Regards
Joachim
Post by Ed Bennett
Post by jweiss
In designmode this is possible by "formating
textfield/textfield/adjustment (top, middle, Bottom). But I cant find
the tight property to do this within my code
You want .TextFrame.VerticalTextAlignment.
--
Ed Bennett - MVP Microsoft Publisher
Continue reading on narkive:
Loading...