- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¥»©«³Ì«á¥Ñ lpk187 ©ó 2016-10-17 11:01 ½s¿è
¦^´_ 1# markbaseball
µ½¥Î°Ï°ìÅܼƵøµ¡¥H¤ÎF8(³v¨B°õ¦æ)¨ÓÆ[¬Ý§Aªº¥N½X¡A´N®e©ö§ì¨ì°ÝÃD©Ò¦b¤F- Sub ro()
- Dim ro As Integer
- Dim AA As Worksheet
- Dim rng As Range, r As Range, c As Range
- Set AA = Worksheets("¤u§@ªí1")
- With Sheets("¤u§@ªí2") '¥H¤u§@ªí2°µ¥Ø¼Ð°Ï°ì
- ro = .[A65535].End(xlUp).Row '´M§äAÄ檺³Ì«á¤@®æªº¦C¸¹
- For Each rng In .Range("a1:a" & ro) '¥HA1:A(roªº¼ÆÈ)¬°½d³ò°µ´`Àô
- Set r = AA.Columns(1).Find(rng, LookIn:=xlFormulas) '¦b¤u§@ªí1ªºAÄæ(Columns(1))¡A´M§ä¥N¸¹
- Set c = AA.Rows(1).Find(rng.Offset(, 1), LookIn:=xlFormulas) '¦b¤u§@ªí1ªº²Ä¤@¦C(Rows(1))¡A´M§ä¦~¥÷
- If Not r Is Nothing And Not c Is Nothing Then '¥N¸¹©M¦~¥÷³£§ä¨ì¤~°õ¦æ
- rng.Offset(, 2) = AA.Cells(r.Row, c.Column) '§â§ä¨ìªº®y¼Ð¤WªºÈ¶K¨ì rng(AÄæ) «áªº²Ä¤GÄæ(CÄæ)
- End If
- Set r =Nothing
- Set c=Nothing
- Next
- End With
- End Sub
½Æ»s¥N½X |
|