I'm trying to create a code that stores the first and last values of an array into different variables. I first select the first value of an array and then try go to the end of the range with "ActiveCell.End (xlDown)" command. This results in a "Invalid use of property" error right at the start of the sub.
Option Explicit
    Dim alku_norm1 As Range
    Dim loppu_norm1 As Range
Sub my_sub()
    Range("A11").Select
    Set alku_norm1 = Selection
    ActiveCell.End (xlDown)
    Set loppu_norm1 = Selection
End sub
 
     
    