The code below works if there is data in A1 and a neighbouring cell.
Dim MyArray() As Variant
MyArray() = Cells(1, 1).CurrentRegion.Value
However, if there is only a value in A1, it crashes.
How can I make it work when there is only one value?
Thanks