- ©«¤l
- 913
- ¥DÃD
- 150
- ºëµØ
- 0
- ¿n¤À
- 1089
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-8-28
- ³Ì«áµn¿ý
- 2023-7-19
|
¦^´_ 11# Hsieh
ª©¤j±z¦n,§Ú¥Îªº¬OExcel 2010 format:
è¤~©Ò¿ý»sªº±Æ§Ç¬°:- Windows("BCM Order_Format.xlsx").Activate
- Sheets("PO").Select
- Range("D2").Select
- ActiveWorkbook.Worksheets("PO").AutoFilter.Sort.SortFields.Clear
- ActiveWorkbook.Worksheets("PO").AutoFilter.Sort.SortFields.Add Key:=Range( _
- "D2:D600"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
- xlSortNormal
- ActiveWorkbook.Worksheets("PO").AutoFilter.Sort.SortFields.Add Key:=Range( _
- "Z2:Z600"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
- xlSortNormal
- ActiveWorkbook.Worksheets("PO").AutoFilter.Sort.SortFields.Add Key:=Range( _
- "H2:H600"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
- xlSortNormal
- ActiveWorkbook.Worksheets("PO").AutoFilter.Sort.SortFields.Add Key:=Range( _
- "G2:G600"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
- xlSortNormal
- ActiveWorkbook.Worksheets("PO").AutoFilter.Sort.SortFields.Add Key:=Range( _
- "E2:E600"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
- xlSortNormal
- With ActiveWorkbook.Worksheets("PO").AutoFilter.Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
½Æ»s¥N½X G¤j¼gªº¾Ú»¡¥u¯à¦Ü3²Õ,©Ò¥H§Úקאּ¥H¤U5²Õªº¤èªk´N¦æ¤£³q?- With Workbooks("BCM Order_Format.xlsx")
- With .Sheets("PO")
- .Range("A1").CurrentRegion.Sort Key1:=.Range("D2"), Order1:=xlAscending,
- Key2:=.Range("Z2"), Order2:=xlAscending, _
- Key3:=.Range("H2"), Order3:=xlAscending, _
- Key4:=.Range("G2"), Order4:=xlAscending, _
- Key5:=.Range("E2"), Order5:=xlAscending, _
- Header:=xlYes, OrderCustom:=1, MatchCase:=False, Orientation:= xlTopToBottom, SortMethod:=xlStroke, _
- DataOption1:=xlSortNormal, _
- DataOption2:=xlSortNormal, _
- DataOption3:=xlSortNormal, _
- DataOption4:=xlSortNormal, _
- DataOption5:=xlSortNormal
- End With
- End With
½Æ»s¥N½X ½Ð°Ý¨Ì§Ú·Qnªº,ÁÙ¦³¤°»ò¤èªk¥i¥H¥Î? |
|