You should be able to record a macro to do this. By recording, you'll get the following (but your sheet name will vary) and the green 20 can be whatever you expect the last row to be.
Alternatively, you could calculate the last row in the macro.
Rich (BB code):
Sub SortCV()
'
' SortCV Macro
'
'
Range("CV1:DB20").Select
ActiveWorkbook.Worksheets("Sheet7").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Sheet7").Sort.SortFields.Add Key:=Range("CV2:CV7") _
, SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Sheet7").Sort
.SetRange Range("CV1:DB7")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
This:
<tbody>
[TD="class: xl65"]Grass Name[/TD]
[TD="class: xl65, width: 64"][/TD]
[TD="class: xl65, width: 64"]Address[/TD]
[TD="class: xl65, width: 64"][/TD]
[TD="class: xl65, width: 64"]Paid[/TD]
[TD="class: xl65, width: 64"][/TD]
[TD="class: xl65, width: 64"]Mileage[/TD]
[TD="class: xl65"]Weaver[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]1 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]100[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]50[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]2 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]200[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]60[/TD]
[TD="class: xl65"]Brown[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]3 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]300[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]70[/TD]
[TD="class: xl65"]Zoro[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]4 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]400[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]25[/TD]
[TD="class: xl65"]Abraham[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]5 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]500[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]90[/TD]
</tbody>
Becomes:
<tbody>
[TD="class: xl65"]Grass Name[/TD]
[TD="class: xl65, width: 64"][/TD]
[TD="class: xl65, width: 64"]Address[/TD]
[TD="class: xl65, width: 64"][/TD]
[TD="class: xl65, width: 64"]Paid[/TD]
[TD="class: xl65, width: 64"][/TD]
[TD="class: xl65, width: 64"]Mileage[/TD]
[TD="class: xl65"]Abraham[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]5 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]500[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]90[/TD]
[TD="class: xl65"]Brown[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]3 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]300[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]70[/TD]
[TD="class: xl65"]Jones[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]2 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]200[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]60[/TD]
[TD="class: xl65"]Weaver[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]1 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]100[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]50[/TD]
[TD="class: xl65"]Zoro[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"]4 Main[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]400[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]25[/TD]
</tbody>