# HAlign Cell (Paragraph Section)

Office 2010

Determines the horizontal alignment of text in the shape's text block.

Value

Description

Automation constant

0

Left align

visHorzLeft

1

Center

visHorzCenter

2

Right align

visHorzRight

3

Justify

visHorzJustify

4

Force justify

visHorzForce

## Remarks

Justify adds space between words in every line except the last line of the paragraph to align both the left and right sides of text with the margins.

Force justify justifies every line in the paragraph, including the last.

To get a reference to the HAlign cell by name from another formula, or from a program using the CellsU property, use:

 Cell name: Para.HorzAlign[i] where i = <1>, 2, 3...

To get a reference to the HAlign cell by index from a program, use the CellsSRC property with the following arguments:

 Section index: visSectionParagraph Row index: visRowParagraph + i where i = 0, 1, 2... Cell index: visHorzAlign
Show:
© 2015 Microsoft