Skip to main content

Range.Merge method

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

Creates a merged cell from the specified Range object.

Syntax

expression.Merge (Across)

expression A variable that represents a Range object.

Parameters

Name Required/Optional Data type Description
Across Optional Variant True to merge cells in each row of the specified range as separate merged cells. The default value is False.

Remarks

The value of a merged range is specified in the cell of the range's upper-left corner.

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>