- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¥»©«³Ì«á¥Ñ yen956 ©ó 2014-2-27 18:52 ½s¿è
¦^´_ 1# kevin21522886
¸Õ¸Õ¬Ý:- Option Explicit
- Sub ³Ì·sª©()
- Dim x, y As Worksheet
- Dim cnt, i As Integer
- Dim Rng, FindCell As Range
- Dim FindStr As String
- Set x = Sheets(1)
- cnt = ThisWorkbook.Sheets.Count
- For Each Rng In x.[B2].Resize(x.[B2].End(xlDown).Row - 1, 1)
- For i = cnt To 2 Step -1
- Set y = Sheets(i)
- y.Activate
- Set FindCell = y.Cells.Find(What:=Rng.Value, After:=ActiveCell, _
- LookIn:=xlFormulas, LookAt:=xlPart, _
- SearchOrder:=xlByRows, SearchDirection:=xlNext, _
- MatchCase:=False, MatchByte:=False, SearchFormat:=False)
- If Not FindCell Is Nothing Then
- Rng.Offset(0, -1) = FindCell.Offset(0, -1)
- Rng.Offset(0, 1) = FindCell.Offset(0, 1)
- Exit For
- End If
- Next
- Next
- End Sub
½Æ»s¥N½X |
|