[µo°Ý]±N¨â°}¦C¨Ì¶¶§Ç¦X¨Ö°ÝÃD
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 254
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-23
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-1-15 11:58 ½s¿è
¦^´_ 13# FAlonso
Y¦Ò¼{¯Á¤ÞÈ·|«½Æªº±¡§Î(²Ä¤@¦C¬Û¦P¡A¦ý²Ä¤G¦C¹ïÀ³È¤£¦P)
¦p¹Ïªº¸ê®Æ
±z·|¦p¦ó¸Ñ¨M?
Array_Sort.zip (10.21 KB)
- Sub Dic_Sort()
- Dim C()
- Set d = CreateObject("Scripting.Dictionary")
- Set d1 = CreateObject("Scripting.Dictionary")
- A = Sheets(1).[A1:J2]: B = Sheets(2).[A1:J2]
- For Each y In Array(A, B)
- For i = LBound(y, 2) To UBound(y, 2)
- d(y(1, i) + d1(y(1, i)) * 0.1) = Array(y(1, i), y(2, i))
- d1(y(1, i)) = d1(y(1, i)) + 1
- Next
- Next
- Do Until d.Count = 0
- ky = Application.Small(d.keys, 1)
- ReDim Preserve C(s)
- C(s) = d(ky)
- s = s + 1
- d.Remove ky
- Loop
- Sheets(3).[A1].Resize(2, s) = Application.Transpose(C)
- Set d = Nothing
- Set d1 = Nothing
- End Sub
½Æ»s¥N½X |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|
- ©«¤l
- 135
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 165
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-12-9
- ³Ì«áµn¿ý
- 2012-8-27
|
¦^´_ 1# asus103 - Sub merge_rank()
- Dim myobject As Object
- Dim myrange As Range
- Dim i As Integer
- Set myobject = CreateObject("scripting.dictionary")
- For i = 1 To 2
- With Worksheets("sheet" & i)
- For Each myrange In .Range(.[a1], .[a1].End(xlToRight))
- myobject(myrange.Value) = myrange.Offset(1).Value
- Next
- End With
- Next
- With Sheet3
- For i = 1 To myobject.Count
- .Cells(1, i).Value = Application.Small(myobject.keys, i)
- .Cells(2, i).Value = myobject.Item(Application.Small(myobject.keys, i))
- Next
- End With
- Set myobject = Nothing
- End Sub
½Æ»s¥N½X |
|
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X
|
|
|
|
|
- ©«¤l
- 77
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- winXP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2011-3-2
|
¦^´_ 10# Hsieh
·PÁ±zHsieh¤j¤j
«D±`·P¿E±zªº¨ó§U
§Ú·Q§Ú¤j·§»Ýnªá¤@¬q®É¶¡¨Ó®ø¤Æ³Ìªñ±z±ÐªºªF¦è
ÁÂÁ±z |
|
ASUS
|
|
|
|
|
- ©«¤l
- 77
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- winXP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2011-3-2
|
Hsieh¤j¤j±z¦n
¹ï¤£°_¡A§Ú¬Ý¤£¤jÀ´
¥i¥H³Â·Ð±z¸ÑÄÀ¤@¤U¶Ü?
§Ú¦pªGn¥Î¨ì§Úªºµ{¦¡¤¤
¬O¤£¬On´¡¤J1¡B3¡B5¦æ©O?
²Ä1¦æ¬O§_¤@©w±o¦b¾ãÓ¼Ò²Õªº³Ì¤W¤è©O? |
|
ASUS
|
|
|
|
|
- ©«¤l
- 77
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- winXP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2011-3-2
|
¥»©«³Ì«á¥Ñ asus103 ©ó 2011-1-13 20:34 ½s¿è
¦^´_ 8# Hsieh
·PÁ±zHsieh¤j¤j
¤S´£¨Ñ§Ú¥t¤@Ó«ä¦Ò¤è¦¡
¥i¥H¥t¥~¦A½Ð±Ð±z¦³Ãö"Delay"ªº¥Îªk¶Ü?
VBA»¡©ú§Ú¬Ý¤£¬ÆÀ´
¤£ª¾¹D¦p¦ó±±¨î©µ¿ð®É¶¡¡A
¦pªG¦b¤@¦^°é¤¤¨C¤@¦¸©µ¿ð0.5¬í¡A¨ä»yªk¬°¦ó
ÁÂÁÂ |
|
ASUS
|
|
|
|
|
- ©«¤l
- 77
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- winXP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2011-3-2
|
¦^´_ 6# Hsieh
·PÁ±zHsieh¤j¤j
§Ú´ú¸Õ¹L¤Fwinxp¡Boffice2007¯à¥¿±`¤u§@
¸ò¤å¦rÀɶ¡ªº¤¬°Ê¬O§Ú¤§«e¤ñ¸û¤Ö¸I¡A¦ý¥¿¦n¬O§Ú¦Û¤v³W¹º¤U¤@¶¥¬qªº¾Ç²ß¥Ø¼Ð
§Ú»Ýn¦hªá¤@ÂI®É¶¡¥h¬ã¨s¥L¡AY¦³°ÝÃD¦A¦V±z½Ð±Ð
·PÁ±z |
|
ASUS
|
|
|
|
|
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 254
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-23
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-1-13 22:28 ½s¿è
¦^´_ 5# asus103 - Sub ex()
- Dim C()
- Open "test.txt" For Output As #1 '²£¥Í¼È¦sÀÉ
- A = [B1:D2]: B = [F1:I2]
- For i = LBound(A, 2) To UBound(A, 2)
- Print #1, A(1, i) & "," & A(2, i)
- Next
- For i = LBound(B, 2) To UBound(B, 2)
- Print #1, B(1, i) & "," & B(2, i)
- Next
- Close #1
- Shell "sort / " & "test.txt" & " /o " & "temp.txt" '²£¥Í±Æ§Ç¼È¦sÀÉ
- '°»´úª½¨ìÀɮײ£¥Í,¦AÄ~Äò«á±ªº°Ê§@
- While Dir("temp.txt") = ""
- Wend
- Open "temp.txt" For Input As #1
- Do Until EOF(1)
- Line Input #1, mystr
- ReDim Preserve C(s)
- C(s) = Split(mystr, ",")
- s = s + 1
- Loop
- Close #1
- Kill "test.txt" '§R°£¼È¦sÀÉ
- Kill "temp.txt" '§R°£±Æ§Ç¼È¦sÀÉ
- [B12].Resize(2, s) = Application.Transpose(C)
- End Sub
½Æ»s¥N½X sort«ü¥O¬OWindows쥻´N¦³ªºDOS«ü¥O¡A¥Î©ó±Æ§Ç¯Â¤å¦rÀÉ¡C
¥H¤Wµ{¦¡³q¹LWindows7+Excel2010´ú¸Õ¡F
Y¦b§Aªº¹q¸£°õ¦æ¦³»~¡A½Ð½T»{§Aªº¹q¸£¸Ì¦³ sort.exe ³oÓ°õ¦æÀÉ¡C |
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|
- ©«¤l
- 77
- ¥DÃD
- 11
- ºëµØ
- 0
- ¿n¤À
- 118
- ÂI¦W
- 0
- §@·~¨t²Î
- winXP
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2011-3-2
|
¦^´_ 4# Hsieh
Hsieh¤j¤j±z¦n
¹ï¤£°_¡A¬O§ÚÃ㤣¹F·N
ªþ¤W½d¨ÒÀÉ
·PÁ±z
Book1.rar (12.24 KB)
|
|
ASUS
|
|
|
|
|