I have 10 values in column A of a excel spreadsheet (it will be more) is there a way to take the values of the column and put them into an array?
And if possible would it be possible to put the values in a different order than they are in in the spreadsheet. For example, if my spreadsheet values are “Apple” “Orange” and “Banana”, then I would like my array to look something like, position 0 “Orange” position 1 “Banana” and position 2 “Apple”.
Does anybody know how this might be done? By the way, it needs to be scalable from 10 to 1000 values without editing the code much
You can create an indexed array for a single column without looping as follows
You didn’t post how you wanted to sort the data?

Udpated for random ordering
The next sub uses a modified version of Chip Pearson’s ShuffleArray