- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ samwang
sam¤j
©êºp¦b§ó¥¿¤@¤U¡A
¥i¯à¬O§Ú»¡©ú¤£°÷²M·¡¡A¬O±N¸Õºâªí¬ì¥Ø¤ñ¹ï°Ñ¼Æ«á¡A
¿é¥X°Ñ¼Æ ...
shuo1125 µoªí©ó 2022-5-25 08:39
§ó·s¦p¬õ¦r³¡¤À¡A½Ð¦A´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, xD, Brr(), T$, T1$, i&, n%
Set xD = CreateObject("Scripting.Dictionary")
Arr = Sheet1.[A1].CurrentRegion
For i = 2 To UBound(Arr)
T = Arr(i, 3): T1 = Arr(i, 5)
If UCase(T1) = "S" Then
xD(T) = Array(Arr(i, 4), Arr(i, 7), Arr(i, 2), Arr(i, 10))
End If
Next
Arr = Sheet2.[A1].CurrentRegion
ReDim Brr(1 To UBound(Arr), 1 To 7)
For i = 2 To UBound(Arr)
T = Arr(i, 1)
If xD.Exists(T) Then
n = n + 1: Brr(n, 3) = xD(T)(1)
Brr(n, 1) = xD(T)(2): Brr(n, 2) = xD(T)(3)
If UCase(xD(T)(0)) = "DR" Then
....
....
.... |
-
-
1.JPG
(186.15 KB)
|