tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
The code below works if there is data in A1 and a neighbouring cell.
However, if there is only a value in A1, it crashes.
How can I make it work when there is only one value?
Thanks
Code:
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