Sort range of cells by up to 4 columns.
Can use any of these columns, not necessarily all.
As always, pass range, sheet, workbook name and cell addresses of these byColumns and which order want to sort.
Edit 2024-12-19: Adding fox for workbooks Activesheet
Access is limited.
Login here using your Linkedin account. to see or download code.
No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Boldcodes.com
Linkedin LoginSorted_Range, SortByCell1, Optional SortCell1Order_Asc1_Desc2 = 1, _
Optional SortByCell2 = "", Optional SortCell2Order_Asc1_Desc2 = 1, _
Optional SortByCell3 = "", Optional SortCell3Order_Asc1_Desc2 = 1, _
Optional SortByCell4 = "", Optional SortCell4Order_Asc1_Desc2 = 1, _
Optional SheetName = "This", Optional WBName = "This"
Optional SortByCell2 = "", Optional SortCell2Order_Asc1_Desc2 = 1, _
Optional SortByCell3 = "", Optional SortCell3Order_Asc1_Desc2 = 1, _
Optional SortByCell4 = "", Optional SortCell4Order_Asc1_Desc2 = 1, _
Optional SheetName = "This", Optional WBName = "This"
Views 920
Downloads 90
CodeID
DB ID