📜  使用 vba 代码示例进行排序

📅  最后修改于: 2022-03-11 14:51:55.748000             🧑  作者: Mango

代码示例1
Sub SortDataWithoutHeader()
Range("A1:B12").Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlNo
End Sub

'Key = start point, primary coloumn
'Order = type of sorting 
'If yes, sorting with start Key+1 to avoid the header