RawlinsCross
Active Member
- Joined
- Sep 9, 2016
- Messages
- 437
Good day,
Have a worksheet where I'd like to select cells in column A (they could be contiguous or non-contiguous) and place the values in an array.
Seems simple enough (vArray = Selection.value works for contiguous selection a group of cells) but I'm having trouble with the non-contiguous part. If I select say A1, A3, A5 using the ctrl-key the resulting array (using vArray = Selection.value) contains only A1. Any thoughts on something that can handle both contiguous AND non-contiguous cases?
Have a worksheet where I'd like to select cells in column A (they could be contiguous or non-contiguous) and place the values in an array.
Seems simple enough (vArray = Selection.value works for contiguous selection a group of cells) but I'm having trouble with the non-contiguous part. If I select say A1, A3, A5 using the ctrl-key the resulting array (using vArray = Selection.value) contains only A1. Any thoughts on something that can handle both contiguous AND non-contiguous cases?