ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó±qsheet1 Àx¦s¦ÜSheet3

[µo°Ý] ¦p¦ó±qsheet1 Àx¦s¦ÜSheet3

§Ú¦bsheet1¤u§@ªí ±qb6:h25¸Ì¿é¤J¸ê®Æ«á¡A«öÀx¦s«ö¶s( CommandButton1_Click() ) «á¡A¥iª½±µ¦s¦Üsheet3 ªºb6¡Gh6 ¨Ã¥B¥i¥H¤@ª½¼W¥[¸ê®Æ

½Ð°Ý¸Óµ{¦¡¦p¦ó¼g©O¡H ³Â·Ð½Ð°ª¤âÀ°§Ú¸Ñµª ÁÂÁÂ

±z¦n~§Ú­è­è¶}©l¾ÇµÛ»s§@¤@¨Çexcel ¥\¯à,§Ú¹J¨ì¦P¼Ëªº°ÝÃD,¦Ó§ó¤£ÁA¸Ñ¦p¦ó»s§@Àx¦s«ö¶s( CommandButton1_Click() ) ,¦ý¬O§Ú¬O·s¦¨­û,©Ò¥HµLªk¤U¸ü¦U¦ì«e½úªº½d¨Ò¨Ó¬ã¨s,©Ò¥H¦U¦ì«e½ú¥i§_¦A±Ð¨|¤@¤U¤p§Ì,©Î¥i¥H±N«e½úªº½d¨Ò±Hµ¹§Ú©O? [email protected] ,·P®¦.
Steven

TOP

³o¤@ÃD¤j®a¦^ÂЪº«Ü¿ãÅD
¦ý¦³ÂI½ÆÂø¤Æ¤F
*********************************
§Ú­Ì¨Ó¬Ý¬Ý³o¤@ÃD¬°¤°»ò®L¥S
¦^ªº«Ü§®ªº­ì¦]

§Ú¬Ý¤F«Ü»{¦P®L¥Sªº°µªk
¤]«Ü¦³·PIJ³o«Ü­«­n
­º¥ý¬OÆ[©À©Ê°ÝÃD OFFICE¯à¥Î°ò¥»¥\¯à´N¥Î°ò¥»¥\¯à ¯à¤£¥Î¥¨¶°´NºÉ¶q¤£¥Î¥¨¶°
¦b³o­ì«h¤U®L¥S°µ¨ì¤F¥Î©w¸q¨ç¼Æ¹Bºâ¥Dµ{¦¡µM«á¦A±Nµ²ªG©ñ¨ì¥¨¶°
´N³æ³o¨â¦æ©w¸q ºâ¥X¤F½Æ»s°Ï»P­n¶K¨ì­þ¸Ìªº©w¦ìÂI
A=OFFSET(Sheet1!$B$6,,,COUNTA(Sheet1!$B$6B$25),7)
N=OFFSET(Sheet3!$B$5,COUNTA(Sheet3!$B$5B$65536),)

TOP

¥»©«³Ì«á¥Ñ ¦Ñ®L ©ó 2010-5-13 14:13 ½s¿è

111.rar (8.59 KB)

±qµ½¦p¬y,¨º´N²æ¿Ç¤l§a!


©w¸q¦WºÙ
A=OFFSET(Sheet1!$B$6,,,COUNTA(Sheet1!$B$6:$B$25),7)
N=OFFSET(Sheet3!$B$5,COUNTA(Sheet3!$B$5:$B$65536),)

Sub ²æ¿Ç¤l©ñ§¾()
    [A].Copy [N]'½Æ»s¨ì
    [A].ClearContents'²M°£
End Sub

**************************************************
¤u§@ªí¥i¥H
§ó¦W
§R°£AÄæ

VBAµL«Å§i

TOP

±z­nªº¬O³o¼Ë¶Ü?
Sub ValCopy()
    Dim lRowEnd As Long

    lRowEnd = Worksheets("Sheet3").Range("B65536").End(xlUp).Row + 1
    Worksheets("Sheet1").Range("B2:K2").Copy Worksheets("Sheet3").Cells(lRowEnd, 2)
   
End Sub

Book1.rar (6.91 KB)

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2010-5-12 21:55 ½s¿è

§Ú¤j·§ª¾¹D§Aªº·N«ä¤F,§A¬O§Æ±æ¨C¦¸«ö¤U Botton ®É³£¯à§â¥Ø«e¦bSheet1 ªº¸ê®Æ "·s¼W" ¨ì Sheet3 ²{¦³ªº¸ê®Æ¤U¤è,¦Ó§â¾ú¦¸©Ò¼W¥[ªº¸ê®Æ¦X°_¨Ó·í¦¨¤@­Ó¸ê®Æ®w¨Ó¥Î.

°ò¥»¤W Copy ¸ê®Æªº¤è¦¡´N°Ñ·Ó¤W¤è§Y¥i, ¦Ü©ó§PÂ_ Sheet3 ¥Ø«e³Ì«á¤@µ§¸ê®Æ¬O±q­þ¸Ì¶}©l,«h¥i¥H§Q¥Î  Sheet3.Range("B65536").End(xlUp).Row ªº¤è¦¡¨ú±o.
ÃöÁ䳡¥÷µ{¦¡¦p¤U,´N¬Ý§A«ç»ò®M¥ÎÅo :

¦]¬°§Aªº¸ê®Æ®w·Q±q Sheet3 ªº b6 Àx¦s®æ¶}©l©ñ¸ê®Æ, ¬°Â²¤Æµ{¦¡ªº§PÂ_, «Øij¥i¥H¦Ò¼{¨Æ¥ý¦b Sheet3 ªº b5 Àx¦s®æÀH«K©ñ­Ó¸ê®Æ,«h:
«ö¤U«ö¶s«á -

1. ¨ú±o Sheet3 ªº¸ê®Æ¥½¦æ¦ì¸m :
iRows = Sheet3.Range("B65536").End(xlUp).Row

2. ±q Sheet1 Copy ¸ê®Æ¨ì Sheet3
   Sheet1.Range("b6:h25").Copy Sheet3.Cells(iRows + 1, 2)

3. ²M°£­ì©l¸ê®Æ°Ïµ¥«Ý¨Ï¥ÎªÌ¿é¤J·s¸ê®Æ (¦]¬°¨C¦¸¸ê®Æ¶q¤£©T©w ¬G«ØijÀ³±N¤W¦¸ªº¸ê®Æ²M°£°®²b¦AÄ~Äò·s¼W¸ê®Æ)
Sheet1.Range("b6:h25").Clear

¦p¦¹À³¸Ó´N¬O§A·Q­nªº¥\¯à.

TOP

®L¥S³oÃD¦^ªº«Ü§®
¬O­Ó¦nµª®×

TOP

¥»©«³Ì«á¥Ñ PD961A ©ó 2010-5-12 17:26 ½s¿è
ÁÂÁ¼ӤW¤j¤jªºÀ°¦£.

¥i¬O§Ú¹J¨ì¤@­Ó°ÝÃD,¦]§Ú·Q­nsheet1·í§@¬OÃþ¦ü¸ê®Æ¿é¤J ¡A¦Ósheet3¬OÃþ¦ü¸ê®Æ®w,·í ...
kcho µoªí©ó 2010-5-12 00:50


®LªO¥Dªº·N«ä¬O
§A¤@¶}©lªº»Ý¨D
"§Ú¦bsheet1¤u§@ªí ±qb6:h25¸Ì¿é¤J¸ê®Æ«á¡A«öÀx¦s«ö¶s( CommandButton1_Click() ) «á¡A¥iª½±µ¦s¦Üsheet3 ªºb6¡Gh6 ¨Ã¥B¥i¥H¤@ª½¼W¥[¸ê®Æ--½Ð°Ý¸Óµ{¦¡¦p¦ó¼g©O¡H
·í®É§A¬O§Æ±æ¥Î¨ì    "CommandButton1ªºÁä«ùÄò¦bSHEET1¼W¥[¸ê®Æ¨ìSHEET3ªº¥\¯à"©Ò¥H§AªºSHEET3·íµM¤£¯à¦A·í¦¨¸ê®Æ®w¨Ï¥Î
·|¸ò§Aªº©w¸q¦WºÙ¬Û½Ä¬ðªº.....
ÁÂÁÂ!

TOP

²æ¿Ç¤l©ñ§¾

sheet3¸ê®Æ²M³æ
¸ê®Æª½±µ¿é¤J«K¬O

TOP

ÁÂÁ¼ӤW¤j¤jªºÀ°¦£.

¥i¬O§Ú¹J¨ì¤@­Ó°ÝÃD,¦]§Ú·Q­nsheet1·í§@¬OÃþ¦ü¸ê®Æ¿é¤J ¡A¦Ósheet3¬OÃþ¦ü¸ê®Æ®w,·í§Ú²Ä¤@¦¸¦bsheet1  b6:h25 ¿é¤J¦³¤Tµ§¸ê®Æ®É ¦A«öÀx¦s«á¦Üsheet3 «á¦³copy ,¦ý²Ä¤G¦¸¿é¤J ®É¥i¯à¤­µ§¸ê®Æ ¥L·|§â«e­±ªº¤Tµ§Âл\¤W¥h ¦ÓµLªk¤@ª½¦b©¹¤U¦C¼W¥[¸ê®Æ ½Ð°Ý¸Ó«ç»ò°µ©O?

TOP

        ÀR«ä¦Û¦b : ­ì½Ì§O¤H´N¬Oµ½«Ý¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD