Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Publisher / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Text-Alignment in VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jweiss - 11 Mar 2005 05:14 GMT
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 - 11 Mar 2005 22:14 GMT
jweiss <jowi@gmx.ch> was very recently heard to utter:
> 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.

Signature

Ed Bennett - MVP Microsoft Publisher

jweiss - 13 Mar 2005 21:53 GMT
It works fine. Thank you very much!
Regards
Joachim

>jweiss <jowi@gmx.ch> was very recently heard to utter:
>> 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.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.