- ©«¤l
- 12
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 56
- ÂI¦W
- 0
- §@·~¨t²Î
- Window7
- ³nÅ骩¥»
- office2010
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2011-8-3
- ³Ì«áµn¿ý
- 2015-5-10
|
¦^´_ 1# luke
Y¬dºµ§¸ê®Æ¦p¤U- Sub Test()
- Dim Txt1 As String, Txt2 As String
- Txt1 = [D3]
- Txt2 = [E3]
- [D3] = IIf(Left(Txt1, 1) = ";", Mid(Txt1, 2, Len(Txt1) - 1), Txt1)
- [E3] = IIf(Left(Txt2, 1) = ";", Mid(Txt2, 2, Len(Txt2) - 1), Txt2)
- Cells.Find(What:=[D3], LookIn:=xlValues).Activate
- i = 1
- Do
- Cells.FindNext(After:=ActiveCell).Activate
- If Cells(ActiveCell.Row, 1).Value = [D3] And Cells(ActiveCell.Row, 2).Value = [E3] Then
- Exit Do
- ElseIf i > 4000 Then
- MsgBox "¬dµL " + [D3] + [E3] & "¸ê®Æ"
- Exit Do
- End If
- i = i + 1
- Loop
- End Sub
½Æ»s¥N½X |
|