You can to sort lines by color without distorting line alignments. You can examine the sample vba excel file and modify it according to your own project.
Download sample Excel File
Excel Trics&Training List
If you have any suggestions or questions, please leave a . Thank you.