Skip to main content

Range.Activate method

Table of contents
  1. Syntax
  2. Return value
  3. Example

Activates a single cell, which must be inside the current selection. To select a range of cells, use the Select method.

Syntax

expression.Activate

expression A variable that represents a Range object.

Return value

Variant

Example

This example selects cells A1:C3 on Sheet1 and then makes cell B2 the active cell.

Worksheets("Sheet1").Activate 
Range("A1:C3").Select 
Range("B2").Activate

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>