Skip to main content

Range.VerticalAlignment property

Table of contents
  1. Syntax
  2. Remarks
  3. Examples

Returns or sets a Variant value that represents the vertical alignment of the specified object. Read/write.

Syntax

expression.VerticalAlignment

expression A variable that represents a Range object.

Remarks

The value of this property can be set to one of the XlVAlign constants.

Examples

The following code sets the vertical alignment of cell A1 to bottom.

Range("A1").VerticalAlignment = xlBottom

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>