I would like to SORT a trio of columns with the column to sort by being C.
The value in the range would be determined by a changing value in cell E3.
B3 & C3 would be static while C# & D# would change.
The three statements in RED are what I need help with
'cell e3 contains value for columns C & D
Range("B3:D22").Select
ActiveWorkbook.Worksheets("Players").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Players").Sort.SortFields.Add2 Key:=Range("C3:C22" _
), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Players").Sort
.SetRange Range("B2:D22")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Bookmarks