I have a code that sorts the entries i put from a userform.
In column C, I have the project name and in column D i have the position. The code currently sorts based off of Column C in the worksheet.
The issue I am having is that i need it to Sort based off of column C first and then Column B. Currently the code Finds entries matching in column C and just adds to the bottom row.
Sub Sortit() With Sheet1 .Range("B5:W10000").Sort Key1:=.Range("C3"), Header:=xlNo End With End Sub
B5then. Have you tried.Range("B4:K10000").Sort Key1:=.Range("C4"), Header:=xlYes? Also I'd warmly recommend removing the empty lines and converting your range to a table/ListObject.