¥»©«³Ì«á¥Ñ av8d ©ó 2022-11-6 22:48 ½s¿è
¥H¤U¬°¥¨¶°¦Û°Ê¼¶¼g¡Aºô¸ô¤W¦Û¦æª¦¤åקï«áªºµ²ªG
n = Application.CustomListCount
Application.AddCustomList (Worksheets("¤u§@ªí2").Range("a2:a3"))
a2:a3¡A¹wp·|¦³«Ü¦h¡A¦ý¬O·í§Ú§ï¼g¦¨a2:a4®É·|¥X¿ù¡C(a4¬OªÅ¥Õ)- Range("G2").Select
- Selection.CurrentRegion.Select
- ActiveWorkbook.Worksheets("¤u§@ªí2").Sort.SortFields.Clear
- n = Application.CustomListCount
- Application.AddCustomList (Worksheets("¤u§@ªí2").Range("a2:a3"))
- ActiveWorkbook.Worksheets("¤u§@ªí2").Sort.SortFields.Add Key:=Range("G2:G58"), _
- SortOn:=xlSortOnValues, Order:=xlAscending, CustomOrder:= _
- n + 1, DataOption:=xlSortNormal
- ActiveWorkbook.Worksheets("¤u§@ªí2").Sort.SortFields.Add Key:=Range("H2:H58"), _
- SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("¤u§@ªí2").Sort
- .SetRange Range("G1:K58")
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- [F1].Select
½Æ»s¥N½X |