- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-1-12 08:01 ½s¿è
¦^´_ 1# jasonwu0114
¬Ý¤@¤Uµ¹ªºª`¸Ñ- Sub Âà¶K¦ÜªÑÅv()
- Dim bt As Range
- Dim Rng As Range
- 'Dim s As String '¦r¦ê
- Dim s As Integer '¼Æ¦r
- Dim e(1 To 4) As Object
- Set e(1) = CreateObject("scripting.dictionary")
- Set e(2) = CreateObject("scripting.dictionary")
- Set e(3) = CreateObject("scripting.dictionary")
- Set e(4) = CreateObject("scripting.dictionary")
- 'Workbooks("³¡¦ì¸Õºâªí-³Â»¶-1030108.xls").Activate
- 'With Sheets("³¡¦ìªí")
- With Workbooks("³¡¦ì¸Õºâªí-³Â»¶-1030108.xls").Sheets("³¡¦ìªí")
- For Each bt In .Range("a6", .Range("a6").End(xlDown))
- With bt
- If .Offset(, 4) <> "" Then
- If .Offset(, 15) = "¥æ©öû1" Then
- e(1)(.Value) = Array(.Offset(, 4).Value, .Offset(, 5).Value)
- '**** .Value -> Àx¦s®æ¬O¼Æ¦r ********
- ElseIf .Offset(, 15).Value = "¥æ©öû2" Then
- e(2)(.Value) = Array(.Offset(, 4).Value, .Offset(, 5).Value)
- End If
- End If
- If .Offset(, 7) <> "" Then
- If .Offset(, 15) = "¥æ©öû1" Then
- e(3)(.Value) = Array(.Offset(, 7).Value, .Offset(, 9).Value)
- ElseIf .Offset(, 15).Value = "¥æ©öû2" Then
- e(4)(.Value) = Array(.Offset(, 7).Value, .Offset(, 9).Value)
- End If
- End If
- End With
- Next
- End With
- Workbooks("ªÑÅv§ë¸ê1030107--³Â»¶.xls").Activate
- With Sheets("¥æ©öû1")
- Set Rng = .Range("a10")
- Do While Rng <> ""
- 's = Val(Rng)
- s = Rng 'Àx¦s®æ¬O¼Æ¦rª½±µ¤Þ¥Î (Rng.Value)
- If e(1).exists(s) Then
- Rng.Offset(, 6).Resize(, 2) = e(1)(s)
- End If
- If e(3).exists(Rng.Value) Then ' Rng¬Oª«¥ó, ³o¸Ìnµ¹Rng.Value(È)
- Rng.Offset(, 8) = e(3)(Rng.Value)(0)
- Rng.Offset(, 10) = e(3)(Rng.Value)(1)
- End If
- Set Rng = Rng.Offset(1)
- Loop
- End With
- End Sub
½Æ»s¥N½X |
|