- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-1-20
- ³Ì«áµn¿ý
- 2023-10-1
|
[µo°Ý] ¦p¦ó±N¤ñ¹ï¨âÄæ¸ê®Æ©ñ¨ì¥t¤@Ó¬¡¶Ã¯
¤p§Ì³o¦³¤@Óµ{¦¡·í¸ê®Æ®wªºBÄæ=FÄæ ,CÄæ=GÄæ«hHÄæ·|±a¥XAÄ檺È
½Ð±Ð¥ý¶i¬O§_¥i¥H§ï¦¨¦b¬¡¶Ã¯"Test"AÄæ="¸ê®Æ®w"BÄæ ,"Test"BÄæ="¸ê®Æ®w"CÄæ «h"Test"CÄæ·|±a¥X"¸ê®Æ®w"AÄæ,"Test"DÄæ·|±a¥X"¸ê®Æ®w"DÄæ
"¸ê®Æ®w"
Part No. Name NOTE DATA
1 A OK NA
2 B OK NA
3 C OK NA
4 D OK NA
5 E OK NA
"Test"
Name NOTE Part No. DATA
A OK
C OK
E OK- Option Explicit
- Sub Lib()
- Dim Rng, Ar, R As Range, i As Integer, ii As Integer
-
- Ar = Range("A1").CurrentRegion.Value '¸ê®Æ®w
-
- i = [MATCH(H1,A1:C1,0)] '¤ñ¹ï©Ò¦³±ø¥ó
-
- Set Rng = Range("F1", Range("F1").End(xlDown)).Resize(, 2)
-
- For Each R In Rng.Rows
-
- For ii = 1 To UBound(Ar, 1)
-
- If R.Cells(1, 1) & R.Cells(1, 2) = Ar(ii, 2) & Ar(ii, 3) Then
-
- R.Cells(1, 3) = Ar(ii, 1)
-
- Exit For
- End If
- Next
- Next
- End Sub
½Æ»s¥N½X |
|