½Ð°Ý¦¹¬q¥i«ç»òÀu¤Æ©O?
¦³¬d¨ìÃö©ó³o¤p¬qªº»¡©ú ¦n¹³³£¬OÄÝ©ó±Æ§Ç? (¦b³Ì¤U¤è¹Ï¤ù)
¥Dn¬O·Qn¨ÌM¦C±qm2¶}©l ¥Ñ¤p¨ì¤j±Æ§Ç- ActiveWorkbook.Worksheets("¤u§@ªí1").AutoFilter.Sort.SortFields.Clear
- ActiveWorkbook.Worksheets("¤u§@ªí1").AutoFilter.Sort.SortFields.Add Key:=Range( _
- "M:M"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
- xlSortNormal
- With ActiveWorkbook.Worksheets("¤u§@ªí1").AutoFilter.Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
½Æ»s¥N½X §¹¾ãµ{¦¡½X- Sub °t¿¯²M³æ()
- '
- With Sheets("¤u§@ªí1")
- ActiveSheet.Range("$A$1").AutoFilter Field:=15, Criteria1:=Array( _
- "¤¸®ð¥D¹", "´ö«~", "¶¼«~", "ÂI¤ß", "¯S®í¶¼«~"), Operator:=xlFilterValues
- ActiveSheet.Range("$A$1:$AT$96").AutoFilter Field:=19, Criteria1:="."
- ActiveWorkbook.Worksheets("¤u§@ªí1").AutoFilter.Sort.SortFields.Clear
- ActiveWorkbook.Worksheets("¤u§@ªí1").AutoFilter.Sort.SortFields.Add Key:=Range( _
- "M:M"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
- xlSortNormal
- With ActiveWorkbook.Worksheets("¤u§@ªí1").AutoFilter.Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- .UsedRange.Columns("M:M").Copy Sheets("°t¿¯(¦)").[C6]
- .UsedRange.Columns("O:O").Copy Sheets("°t¿¯(¦)").[A6]
- .UsedRange.Columns("Q:Q").Copy Sheets("°t¿¯(¦)").[D6]
- .Range("A1").AutoFilter
- End With
- End Sub
½Æ»s¥N½X
|