- ©«¤l
- 91
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 130
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-5-14
- ³Ì«áµn¿ý
- 2020-5-17
|
¦^´_ 1# adrian_9832
°Ñ¦Ò¬Ý¬Ý
³oµ{¦¡¥¼¦Ò¼{§ä´MNN¦ý¥u®t³Ì«á¤@¦rªº³¡¤À¡A·|Âл\«e±¤w¶ñ¤J¹L- Public Sub text()
- Dim FindRange As Range, FindString As Range
- lastRow = Cells(ActiveSheet.Rows.Count, 2).End(xlUp).Row
- Set FindRange = Worksheets(1).Range(Cells(1, 2), Cells(lastRow, 2))
- Set FindString = Worksheets(1).Range(Cells(9, 13), Cells(Cells(ActiveSheet.Rows.Count, 13).End(xlUp).Row, 13))
- For Each a In FindString
- a1 = Left(a.Value, Len(a.Value) - 1)
- Set c = FindRange.Find(a1, LookIn:=xlValues)
-
- If Not c Is Nothing Then
- firstAddress = c.Address
- Do
- Cells(c.Row, 8).Value = Cells(a.Row, a.Column - 1).Value
- Cells(c.Row, 9).Value = a.Value
- Set c = FindRange.FindNext(c)
- Loop While Not c Is Nothing And c.Address <> firstAddress
- End If
- Next
- End Sub
½Æ»s¥N½X |
|