- ©«¤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
|
¦^´_ 43# Hsieh
ª©¤j,
«ö±z»¡ªº¬O§_§ï¦¨¥H¤U³o¼Ë,µ²ªGÁÙ¬O¬Û¦P,§Ú¥Î½Xªíp®É,¨CRUN¤@Ó¤u§@ªí¬ù17~20¬í,³o¬O«ü²Ä¤@¬qµ{¦¡,²Ä¤G¬qµ{¦¡«h¬OµÏ¶¡´N§¹¦¨¤F,©ÎªÌ¥i§_½Ð¦³¿³½ìªº¤H³£À°¦£¬Ý¤@¤U,³o¤G¬q¬qµ{¦¡¦³¨S¦³¤°»ò®t§O?ÁÙ¥i¥H«ç»ò§ï?
¯u¹ï¤£°_°Õ!§Ú¬Ý¨ì³oÓ³t«×²ª½...- Sub Try_2()
- Workbooks("2012 BCMart Chart.xlsx").Activate
- Application.Calculation = xlCalculationManual
- For s = 5 To 10 '±q²Ä¬YÓ¤u§@ªí°õ¦æ¦Ü²Ä¬YÓ
- Sheets(s).Activate
- Set sh = ActiveSheet
- n = sh.[al10000].End(3).Row '(ALÄ榳¸ê®Æªº³Ì«á¦C)³o¸Ì¥i¥H§ï¦¨©pªº¸ê®Æ¤¤³Ì»ôªº¤@Äæ
- sh.[aa:al] = sh.[aa:al].Value '§â¤½¦¡µ²ªGÅܦ¨È
- sh.AutoFilterMode = False '¨ú®ø¦Û°Ê¿z¿ï
- sh.[a4:ad4].AutoFilter '«Ø¥ß¦Û°Ê¿z
- Next '¤U¤@Ó¤u§@ªí
- Application.Calculation = xlCalculationManual
- ActiveWorkbook.Save
- Workbooks("2012 BCMart Chart.xlsx").Activate
- For s = 5 To 10 '±q²Ä¬YÓ¤u§@ªí°õ¦æ¦Ü²Ä¬YÓ
- Sheets(s).Activate
- Set sh = ActiveSheet
- n = sh.[AC1000].End(3).Row 'acÄæ³Ì«áÀx¦s®æ¦C¸¹
- sh.Sort.SortFields.Clear '²M°£««Ø±Æ§Ç±ø¥ó
- Ar = Array("ac", "u", "r", "s", "t", "q", "c", "d")
- For i = 0 To UBound(Ar)
- sh.Sort.SortFields.Add Key:=sh.Range(Ar(i) & "5:" & Ar(i) & n)
- Next
- With sh.Sort '¹ï«ü©w½d³ò¥H«ü©w±ø¥ó±Æ§Ç
- .SetRange sh.Range("A5:AD" & n)
- .Header = xlNo
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Next '¤U¤@Ó¤u§@ªí
- ActiveWorkbook.SaveAs "P:\BCMart Chart\2012 BCMart Chart-sorted.xlsx"
-
- End Sub
½Æ»s¥N½X |
|