whitethorn
New Member
- Joined
- Jun 20, 2018
- Messages
- 3
Hi All,
I am trying to use the following to define the first and last value of an entered array (partial code shown below). is there a way to make this work?
thanks in advance
I am trying to use the following to define the first and last value of an entered array (partial code shown below). is there a way to make this work?
Code:
For j = 1 To finalrow3
For l = 1 To 200
If base(j, 1) = firstlast(l, 2) And Year(dates(j, 1)) <= firstlast(l, 1) And Year(dates(j, 2)) >= firstlast(l, 1) Then
first = firstlast(l, 3)
last = firstlast(l, 4)
End If
b() = Capacity.Range(Cells(first, H), Cells(last, H))
bil() = Capacity.Range(Cells(first, i), Cells(last, O))
mh() = Capacity.Range(Cells(first, W), Cells(last, X))
thanks in advance