Skip to main content

Range.Orientation property

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

Returns or sets a Variant value that represents the text orientation.



expression A variable that represents a Range object.


The value of this property can be set to an integer value from -90 to 90 degrees or to one of the XlOrientation constants.


The following code example sets the orientation of cell A1 to xlHorizontal.

Range("A1").Orientation = xlHorizontal

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>