- ©«¤l
- 2833
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2889
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-17
|
¨Ï¥Î¡e°Ï¬q¡f³B²z¡A¢ÑÄæ¡e±q¤p¨ì¤j¡f¬°¤@ӰϬq¡G
Sub °õ¦æ()
Dim G&, TM, i&, j%, R&
TM = Time
Sheets("¤u§@ªí1").Select
R = Cells(Rows.Count, 1).End(xlUp).Row
With Range("C2:C" & R): .Formula = "=MATCH(A2,º¶!A$1:A$3000,)": .Value = .Value: End With
Application.ScreenUpdating = False
Dim xU(1 To 4) As Range, xR(1 To 4) As Range, X&, N&
X = 1: N = 2
RE_GET:
For i = X + 1 To R
¡@¡@G = Cells(i, "C")
¡@¡@Set xR(1) = [º¶!F1:P1].Offset(G - 1, 0)
¡@¡@Set xR(2) = [°ò¥»±!G1:I1].Offset(G - 1, 0)
¡@¡@Set xR(3) = [°ò¥»±!D1:E1].Offset(G - 1, 0)
¡@¡@Set xR(4) = [°ò¥»±!E1:F1].Offset(G - 1, 0)
¡@¡@For j = 1 To 4
¡@¡@¡@¡@If xU(j) Is Nothing Then Set xU(j) = xR(j) Else Set xU(j) = Union(xU(j), xR(j))
¡@¡@Next j
¡@¡@If G >= Cells(i + 1, "C") Then X = i: Exit For
Next
For j = 1 To 4
¡@¡@xU(j).Copy Range(Array("D1", "O1", "R1", "T1")(j - 1)).Cells(N, 1)
¡@¡@Set xU(j) = Nothing: Set xR(j) = Nothing
Next j
N = X + 1
If X < R Then GoTo RE_GET
MsgBox "§¹¦¨®É¶¡" & Format(Time - TM, "hh:mm:ss")
End Sub
ªþÀɤU¸ü¡G
Xl0000231.rar (231.44 KB)
¡@ |
|