I need to place a group of values form cells chosen by the user in to an array. These could be discontinuous cells (mutitple choices by holding down the control key and clicking on cells). I have not got far...
a = Application.WorksheetFunction.CountA(Selection)
ReDim x(a) as Long
So now I have the count of number of highlighted cells and an array fitted to that size. How do I place the values of selected cells into the array?
a = Application.WorksheetFunction.CountA(Selection)
ReDim x(a) as Long
So now I have the count of number of highlighted cells and an array fitted to that size. How do I place the values of selected cells into the array?