- ©«¤l
- 162
- ¥DÃD
- 44
- ºëµØ
- 0
- ¿n¤À
- 244
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-4-4
- ³Ì«áµn¿ý
- 2022-10-3
|
¶K¥Xì©lµ{¦¡½X¡A¬¡¶Ã¯¤Î¤u§@ªí¦WºÙ¦³²¤°µ×§ï- Option Base 1
- ¶}±Ò¥t¤@Ó«D¤u§@¤¤¬¡¶Ã¯WK(¥H¤U¬Ù²¤).
- .
- .
- .
- With Sheets("Inventory Report")
- IRM1 = .[C4]
- IRM2 = .[C5]
- Set d = CreateObject("Scripting.Dictionary")
- Set d1 = CreateObject("Scripting.Dictionary")
- For Each A In .Range(.[A9], .[A6000].End(xlUp))
- Dim Ar(13), Br(24)
- For i = 1 To 13
- Ar(i) = A.Offset(, i).Value
- Next i
- d(A & "") = Ar
-
- For j = 1 To 24
- Br(j) = A.Offset(, j + 159).Value
- Next j
- d1(A & "") = Br
- Next
- End With
- Workbooks("L.xlsm").Activate
- With Sheets("A INV Report")
- .[E10,G10,G11,G12:AR3000].ClearContents
- .[G10] = IRM1
- .[G11] = IRM2
- If .[H9] Like "* A *" Then: .[E10] = "A"
- If .[H9] Like "* B *" Then: .[E10] = "B"
- For Each A In .Range(.[F12], .[F10000].End(xlUp))
- If d.exists(A & "") Then
- A.Offset(, 1).Resize(, 13) = d(A & "")
- End If
- If d1.exists(A & "") Then
- A.Offset(, 15).Resize(, 24) = d1(A & "")
- Else: A.Offset(, 1).Value = "¬dµL¦¹ PN"
- End If
- Next
- End With
- Erase Ar,Br
- Set d = Nothing
- Set d1 = Nothing
- End Sub
½Æ»s¥N½X |
|