ªð¦^¦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 ³Â·Ð½Ð°ª¤âÀ°§Ú¸Ñµª ÁÂÁÂ

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

[Sub Macro1()
[A].Copy [N]
End Sub

Sheet1.JPG (87.4 KB)

Sheet1.JPG

Sheet3.JPG (91.2 KB)

Sheet3.JPG

TOP

¤£·|§a³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

²æ¿Ç¤l©ñ§¾

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

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¥S³oÃD¦^ªº«Ü§®
¬O­Ó¦nµª®×

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

±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

¥»©«³Ì«á¥Ñ ¦Ñ®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

        ÀR«ä¦Û¦b : ª¾ÃÑ­n¥Î¤ßÅé·|¡A¤~¯àÅܦ¨¦Û¤vªº´¼¼z¡C
ªð¦^¦Cªí ¤W¤@¥DÃD