ªþÀɤ¤§Ú·Q¥ÎBÄ檺½s¸¹¨Ó°µ±Æ§Ç¡A¼Ò²Õ¤¤ªºµ{¦¡½X¤£ª¾¹D¬O¤£¬O¦³¤°»ò°ÝÃD¡A¨S¸õ¥X¿ù»~¸ê°T¡A¦ý¤]¨S¦³§ó·s±Æ§Ç¡A½Ð¦U¦ì¤j¤jÀ°¦£¡AÁÂÁÂ!!- Sub ®w¦s±Æ§Ç()
- With Sheets("¼t¤º®w¦s")
- .Select
- r = .Columns(2).Find(what:="*", LookIn:=xlValues, SearchDirection:=xlPrevious).Row
- .Sort.SortFields.Clear
- .Sort.SortFields.Add Key:=Range("B4:B" & r), _
- SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
- With .Sort
- .SetRange Range("B3:Z" & r)
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- For i = 4 To r
- .Cells(i, "A") = i - 3
- Next
- .Range("B" & r).Select
- End With
- End Sub
½Æ»s¥N½X
±Æ§Ç¥¢®Ä.rar (13 KB)
|