I'm smacking my forehead because this should be easy but I'm unsure about how to correctly use the RANGE object.
I have a column of values, always starting at cell "E8". The number of values in the column may change. Here's the code I have so far:
How do I specify to start at cell E8, stuff that value into the array, and then move down and repeat?
Thanks for your help!!
Thanks!!
Matt
I have a column of values, always starting at cell "E8". The number of values in the column may change. Here's the code I have so far:
Code:
Option Explicit
Option Base 1
Private Sub ReadInArray()
Dim i, y, x As Long
Dim c As Range
x = 0
i = 1
'Count the rows in the array
x = Range("E" & Rows.Count).End(xlUp).Row - Range("E8").Row
ReDim aLevels(x)
For Each c In Range("E8", Range("E8").End(xlDown))
aLevels(i) = Range("E" & 'And here I'm stuck
i = i + 1
Next
End Sub
How do I specify to start at cell E8, stuff that value into the array, and then move down and repeat?
Thanks for your help!!
Thanks!!
Matt