¥i¥H½Ð±Ð·íÄæ¦ì¤£¬O©T©w¦b¤@Ó¦ì¸m§Ún¦p¦ócopy¨ì²Ä2¬¡¶
- ©«¤l
- 29
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 82
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- OFFICE2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-6-14
- ³Ì«áµn¿ý
- 2020-9-14
|
¥i¥H½Ð±Ð·íÄæ¦ì¤£¬O©T©w¦b¤@Ó¦ì¸m§Ún¦p¦ócopy¨ì²Ä2¬¡¶
§ÚÌ®aªº¸ê®Æ±`±`·|¤£¬O©T©wÄæ¦ì,§Ú¦³¥Îif ¥h§ì¥¦ªº¦ì¤l,¦ýµLªk¦^¶Ç¦ì¤l°T®§µ¹§Ú,©Ò¥Hn½Ð±Ð¤j¤j们,§Ú¥i¥H¥Î¦ó¤è¦¡§ì¨ú§ÚnªºÄæ¦ì¦bcopy¨ì¥t¤@Ó¬¡¶Ã¯ |
-
-
test1.JPG
(195.48 KB)
-
-
test2.JPG
(120.22 KB)
-
-
Book1.rar
(13.17 KB)
|
|
|
|
|
|
- ©«¤l
- 29
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 82
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- OFFICE2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-6-14
- ³Ì«áµn¿ý
- 2020-9-14
|
ÁÂÁ¤j¤j §ÚÁÙ¬O·s¤â©Ò¥H§Ú§â§Ú·Qªº¥´µ¹§A¬Ý¬Ý
Dim A As Range = ³]©w a ¬° ©Ò¦³Àx¦s®æ
With Sheet1 =³¯z sheet1 ©Ò¦³°T®§
Set A = .Cells.Find("¤u¥O", lookat:=xlWhole) = °}¦Ca = .Àx¦s®æ¤¤¸Óª«¥ó¥Nªí©Ò§ä¨ìªº²Ä¤@Ó¥]§t©Ò´M§ä¸ê°TªºÀx¦s®æ(µ¥©ó"¤u¥O", µo²{n§äªº¸ê®Æ=n§å°t¨ì¸ê®Æ)
If Not A Is Nothing Then A.CurrentRegion.Copy Sheet2.[A1] = ¦pªG not§ä¤£¨ì «ha´N¤£°õ¦æ §_«h a ´N¬O¨ì¦ì¸m°õ¦æctrl+a copy¨ì²Ä2¬¡¶Ã¯
End With =µ²§ô³¯z
¤£ª¾§Úªº¤F¸Ñ¬O§_¦³»~ |
|
|
|
|
|
|
- ©«¤l
- 29
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 82
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- OFFICE2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-6-14
- ³Ì«áµn¿ý
- 2020-9-14
|
³øºpè¤U¯Z,ÁÂÁ¤j¤jªº±Ð¾É,§Ú¥i¥H¦b½Ð±Ð¤@¤U,¦pªG§Ú¥un¤u¥O¸ò«~¦W¶K¨ìsheet2 ,§Úè観¸Õ¹L
With Sheet1
Set A = .Cells.Find("¤u¥O", lookat:=xlWhole)
If Not A Is Nothing Then A.End(xlDown).Copy Sheet2.[A1]
Set A = .Cells.Find("«~¦W", lookat:=xlWhole)
If Not A Is Nothing Then A.End(xlDown).Copy Sheet2.[b1]
End With
End Sub
¬°¦óµLªkcopy "¤u¥O"¤U±,¸ò"«~¦W"¥þ³¡, ¥¦¥ucopy ³Ìªñ¤@®æ¦³°T®§ªº¸ê®Æ¶K¨ìsheet2 ,³øºp¤S³Â·Ð¤j¤j们 |
|
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
§Ú¤]¨Ó½m²ß¤@¤U- Sub ex2()
- Dim A As Range
- With Sheet1
- Set A = .Cells.Find("¤u¥O", lookat:=xlWhole)
- If Not A Is Nothing Then
- Set t = A.CurrentRegion
- t.Offset(0, 1).Resize(t.Rows.Count, 1).Copy Sheet3.[A1]
- t.Offset(0, 3).Resize(t.Rows.Count, 1).Copy Sheet3.[B1]
- End If
- End With
- End Sub
½Æ»s¥N½X |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 29
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 82
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- OFFICE2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-6-14
- ³Ì«áµn¿ý
- 2020-9-14
|
¦^´_ 6# ML089
¤j¤j³øºp,§Úèè¸Õ¹L¦ý¥¦¥u·|copy¥t¥ó®Æ¸¹,§Ú¦³¸Õ¹L§ï t .Offset(0, 0).Resize(t.Rows.Count, 1).Copy Sheet3.[A1] ,¥¦¥u·|copy"¤u¥O", ¦ý¦pªGncopy"«~¦W"´NµLªk·Ó§Únªºcopy¨ìsheet3.[b2] ,½Ð°Ý§ÚÁÙnק墨Ãä¤~·|Åý¹q¸£±a¥X§Ú«ü©wÄæ¦ì,·PÁ¤j¤j们ªºÀ°¦£ |
|
|
|
|
|
|
- ©«¤l
- 29
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 82
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- OFFICE2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-6-14
- ³Ì«áµn¿ý
- 2020-9-14
|
|
|
|
|
|
|