- ©«¤l
- 146
- ¥DÃD
- 41
- ºëµØ
- 0
- ¿n¤À
- 229
- ÂI¦W
- 295
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2011-6-21
- ³Ì«áµn¿ý
- 2024-11-29
|
è¾ÇVBA¦³«Ü¦hn¾Ç²ß,·PÁ¦U¦ì«ü¾É,¸g½Õ¾ã«á¥H¤U¬O§Únªº»yªk,ÁÂÁ¤j®a.
Dim i&, j&, k%
Dim arr As Variant
Dim MAS As Variant
MAS = Cells(Rows.Count, 1).End(xlUp).Row
'Dim arr1(1 To 100, 1 To 2) 'ì½Z
ReDim arr1(1 To MAS, 1 To 2) '½Õ¾ã«áªº»yªk
'arr = [a2:d100] 'ì½Z
'arr = ["a2:d" & MAS ]
arr = Range(Cells(2, 1), Cells(MAS, 4).Address) '½Õ¾ã«áªº»yªk
For i = 1 To UBound(arr)
If arr(i, 1) <> "" Then
If arr(i, 1) = Cells(3, "e") And arr(i, 2) = Cells(3, "f") Then
k = k + 1
arr1(k, 1) = arr(i, 3)
arr1(k, 2) = arr(i, 4)
End If
End If
Next i
Cells(3, "h").Resize(UBound(arr1), 2) = arr1 |
|