With Sheet1 arrData = .Range("A2:A" & .Range("A1").CurrentRegion.Rows.Count).Value2 End With
UBound(array)