- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 9# ldneye
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim e As Range, Rng(1 To 2) As Range
- Sheets("2006_1").Range("B:O").Clear
- For Each e In Sheets("2006_1").Range("a:a").SpecialCells(xlCellTypeConstants)
- If Trim(e) <> "" Then '±Æ°£¦³¿é¤JªÅ¥Õ¦r¦êªºÀx¦s®æ
- 'Trim(e) -- LTrim¡BRTrim »P Trim ¨ç¼Æ ¶Ç¦^¤@Ó¨S¦³«eÀYªÅ¥Õ (LTrim)¡B«á±ªÅ¥Õ (RTrim) ©Î«e«á§¡µLªÅ¥ÕªºVariant (String)¡A¨ä¤¤©Ò§t¬°µ¹©wªº¦r¦ê¡C
- Set Rng(1) = Sheets("Return").Range("a:a").Find(e, lookat:=xlPart)
- If Not Rng(1) Is Nothing Then
- Set Rng(2) = Rng(1).CurrentRegion.Columns(1).Find("2005", lookat:=xlWhole)
- If Not Rng(2) Is Nothing Then e.Offset(, 1).Resize(, 14) = Rng(2).Resize(, 14).Value
- End If
- End If
- Next
- End Sub
½Æ»s¥N½X |
|