MsoVerticalAnchor enumeration (Office)

Specifies the vertical alignment of text in a text frame. Used with the VerticalAnchor property of the TextFrame object.

Name Value Description
msoAnchorBottom 4 Aligns text to bottom of text frame.
msoAnchorBottomBaseLine 5 Anchors bottom of text string to current position, regardless of text resizing. When you resize text without baseline anchoring, text centers itself on previous position.
msoAnchorMiddle 3 Centers text vertically.
msoAnchorTop 1 Aligns text to top of text frame.
msoAnchorTopBaseline 2 Anchors bottom of text string to current position, regardless of text resizing. When you resize text without baseline anchoring, text centers itself on previous position.
msoVerticalAnchorMixed -2 Return value only; indicates a combination of the other states.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.