- ©«¤l
- 967
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 1001
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-11-29
- ³Ì«áµn¿ý
- 2022-5-17
|
¦^´_ 5# ginbow - Sub ¦r¨å()
- t = Timer
- Application.ScreenUpdating = False
- Set d = CreateObject("scripting.dictionary")
- With Worksheets("sheet1")
- AR = .[A1].CurrentRegion
- For i = 2 To UBound(AR)
- d(AR(i, 1) & AR(i, 8) & AR(i, 3) & "¶RÅv") = ""
- Next i
- End With
- With Worksheets("sheet2")
- BR = .[A1].CurrentRegion
- For i = 2 To UBound(BR)
- If d.Exists(BR(i, 1) & BR(i, 2) & BR(i, 3) & BR(i, 4)) Then d(BR(i, 1) & BR(i, 2) & BR(i, 3) & BR(i, 4)) = BR(i, 5)
- Next
- End With
- Worksheets("¿ï¾ÜÅv¸ê®Æ").[A2].Resize(d.Count, 1) = Application.Transpose(d.items)
- Application.ScreenUpdating = True
- MsgBox Timer - t & "’"
- End Sub
½Æ»s¥N½X- Sub ¦Û°Ê¿z¿ï()
- t = Timer
- Application.ScreenUpdating = False
- nrow = Worksheets("sheet1").Range("A65536").End(xlUp).Row
- With Worksheets("sheet2").Range("A1:D" & Worksheets("sheet2").Range("A65536").End(xlUp).Row)
- For i = 2 To nrow
- .AutoFilter Field:=1, Criteria1:=DateValue(Worksheets("sheet1").Cells(i, 1))
- .AutoFilter Field:=2, Criteria1:=Worksheets("sheet1").Cells(i, 8)
- .AutoFilter Field:=3, Criteria1:=Worksheets("sheet1").Cells(i, 3)
- .AutoFilter Field:=4, Criteria1:="¶RÅv"
- .Offset(1, 4).Resize(, 1).SpecialCells(xlCellTypeVisible).Copy Worksheets("¿ï¾ÜÅv¸ê®Æ").Cells(i, 1)
- Next
- .AutoFilter
- End With
- Application.ScreenUpdating = True
- MsgBox Timer - t & "’"
- End Sub
½Æ»s¥N½X |
|