Hello
My code here (posting only error area) gives me subscription out of range error
I know we cannot redim the first dimensions of an array, that is why I wrote it like this.. but unfortunately I cannot expand my array columns
any advice?
My code here (posting only error area) gives me subscription out of range error
VBA Code:
For i = LBound(l) To UBound(l)
If l(i, 6) = "Completed" Then
n = n + 1
ReDim Preserve a(1 To n) As Variant
a(n) = l(i, 1)
End If
Next i
ReDim Preserve a(1 To UBound(a), 1 To 50) As Variant
I know we cannot redim the first dimensions of an array, that is why I wrote it like this.. but unfortunately I cannot expand my array columns
any advice?