Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word: Left align text in a cell

Status
Not open for further replies.

SimonFinn

Programmer
Mar 13, 2003
130
GB
Hi

I am trying to left align the text within one cell in a table in word, from Visual Basic.

Can someone let me know how to do this.

Thanks Si
 
Hi SimonFinn,

Identify the cell by some means in your code - via a bookmark or whatever and either select it or set a range to it and then do ..

Code:
Selection
Code:
Or
Code:
RangeName
Code:
.Cells(1).Range.ParagraphFormat.Alignment = wdAlignParagraphLeft

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top