- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦^´_ 1# eric093 - Sub nn()
- Dim lRow As Long, lR As Long
- Dim d
- Set d = CreateObject("Scripting.Dictionary")
- lRow = 2
- With Sheets("Sheet2")
- Do While .Cells(lRow, 1) <> ""
- d(.Cells(lRow, 1) & "-" & .Cells(lRow, 2)) = lRow
- lRow = lRow + 1
- Loop
- End With
-
- lRow = 2
- lR = 1
- With Sheets("Sheet1")
- Do While .Cells(lRow, 1) <> ""
- If d(.Cells(lRow, 1) & "-" & .Cells(lRow, 2)) = "" Then
- Range(.Cells(lRow, 1), .Cells(lRow, 2)).Copy Sheets("Sheet3").Cells(lR, 1)
- lR = lR + 1
- End If
- lRow = lRow + 1
- Loop
- End With
- End Sub
½Æ»s¥N½X |
|