Text-Alignment in VBA

J

jweiss

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
 
E

Ed Bennett

jweiss said:
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.
 

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