I have a data set which I need to sort using VBA.
I can sort it ascending or descending without any problems, but I need to sort it according to a defined list.
Example:
The data set contains a number of records in two columns. Column1 is sales rep, while column2 is sales.
Let us say that the sales rep can be 'Peter', 'Paul', 'John', 'Sally' and 'Angie'.
The dataset then needs to be sorting in accordance with the following list: 'John', 'Angie', 'Sally', 'Peter', 'Paul'.
How can I do that?
/Soren
I can sort it ascending or descending without any problems, but I need to sort it according to a defined list.
Example:
The data set contains a number of records in two columns. Column1 is sales rep, while column2 is sales.
Let us say that the sales rep can be 'Peter', 'Paul', 'John', 'Sally' and 'Angie'.
The dataset then needs to be sorting in accordance with the following list: 'John', 'Angie', 'Sally', 'Peter', 'Paul'.
How can I do that?
/Soren