Be the first user to complete this post

  • 0
Add to List

VBA-Excel: Select and Activate Cells - Activate

Here is something interesting for you, you can use a Activate method to activate a cell within a selection.

Activating a Cell Within a Selection

Sub ActivateCellInSelection()

   Worksheets("Sheet4").Select

   Worksheets("Sheet4").Range("A1:H6").Select

   Worksheets("Sheet4").Range("D3").Activate

End Sub


Run this procedure and you will the selection in Sheet4 from A1 to H6 with D3 cell activated.

Activate Cell in selection -1
Activate Cell in selection



Also Read:

  1. VBA-Excel: String Functions – Trim()
  2. VBA-Excel: Create Array using Array() Function
  3. VBA-Excel: Date-Time Functions – DateDiff()
  4. VBA-Excel: Arrays – Two Dimensional, Static Array
  5. VBA-Excel: String Functions – Len()
  6. VBA-Excel: Array Functions – Filter()
  7. VBA-Excel: Date-Time Functions – DateAdd()
  8. VBA-Excel: Date-Time Functions – DateSerial()