Hello,
Below is my table I try to sort in VBA.
Column A are months and must not change.
Column B,C and D need to be sorted so that "Site" in Column B always comes on top.
There will only ever be "Office" or "Site" in column B but I'm having difficulties in finding a way to sort it by month name.
Would anyone here please be able to give me an idea on how to sort my table?
Below is my table I try to sort in VBA.
Column A are months and must not change.
Column B,C and D need to be sorted so that "Site" in Column B always comes on top.
There will only ever be "Office" or "Site" in column B but I'm having difficulties in finding a way to sort it by month name.
Would anyone here please be able to give me an idea on how to sort my table?
Excel Workbook | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | January | Site | GGM | 6 | ||
2 | January | Site | NMM | 5 | ||
3 | January | Office | MWA | 11 | ||
4 | January | Office | KNC | 11 | ||
5 | February | Site | GGM | 7 | ||
6 | February | Site | NMM | 5 | ||
7 | February | Office | MWA | 12 | ||
8 | February | Office | KNC | 12 | ||
9 | March | Site | GGM | 7 | ||
10 | March | Site | NMM | 5 | ||
11 | March | Office | MWA | 12 | ||
12 | March | Office | KNC | 12 | ||
13 | April | Site | GGM | 6 | ||
14 | April | Site | NMM | 7 | ||
15 | April | Office | MWA | 13 | ||
16 | April | Office | KNC | 13 | ||
Sheet1 |