Hi and thanks in advance,
I am working with a 2 dimensional array in Excel that stores row numbers and names:
E.g.
I am looking for a way in VBA to move just one of the names, either up or down the array, leaving the row numbers as they are. (I do not need to resize the array):
So, if I wanted Fred to move up to the second element, and move Peter down one, this is how it should look:
Or if I wanted John to move down to the fourth element, and move Peter, Fred and Tony up one, then this is how it should look:
Thanks kindly
I am working with a 2 dimensional array in Excel that stores row numbers and names:
E.g.
Row numbers | Names |
1 | John |
2 | Peter |
3 | Fred |
4 | Tony |
I am looking for a way in VBA to move just one of the names, either up or down the array, leaving the row numbers as they are. (I do not need to resize the array):
So, if I wanted Fred to move up to the second element, and move Peter down one, this is how it should look:
Row numbers | Names |
1 | John |
2 | Fred |
3 | Peter |
4 | Tony |
Or if I wanted John to move down to the fourth element, and move Peter, Fred and Tony up one, then this is how it should look:
Row numbers | Names |
1 | Peter |
2 | Fred |
3 | Tony |
4 | John |
Thanks kindly