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

[µo°Ý] ½Æ»s¶K¤W

[µo°Ý] ½Æ»s¶K¤W

¥»©«³Ì«á¥Ñ acdx ©ó 2013-10-18 15:37 ½s¿è

§Ú¦b°µ¸ê®Æªº½Æ»s¶K¤W ±Nsheet2¤¤¤@¦C¼Æ­È¶K¨ìsheet1¤¤¯S©wÄæ¦ì¸Ì«o¥X²{¿ù»~
³o¤£¬O³Ìªñ¥»ªº½Æ»s¶K¤W«ü¥O¶Ü?«ç»ò³s³o»ò³£·|¿ù
    Worksheets(2).Range(Cells(13, 6), Cells(13, 6 + RC)).Copy
    Worksheets(1).Cells(13, 7 + RC).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
°õ¦æ¨ì.Select¦C®É«oÅã¥Ü"Class RangeªºSelectµoªk¥¢±Ñ (¿ù»~ 1004)"
¨ä¤¤RC¬O¤@ÅܼÆ: RC = Range("A15").End(xlToRight).Column
¨s³º°ÝÃD¥X¦b­þ¸Ì?

¦^´_ 1# acdx
¦]¬°§A¤u§@¤¤ªº¤u§@ªí¦bsheets2¡A«o­nselect  sheets1ªºÀx¦s®æ¡A·íµM¤£¥i¯à¡C
1.  °£«D§A­n¿ï¾Üsheets1ªºÀx¦s®æ«e¥ý°õ¦æ Worksheets(1).Activate¡C
2.  ¤ñ¸û¦nªº¤èªk¬O¤£­n¥Îselect¡A¨â¦æ¦X¬°¤@¦æ¡C
  1.   Worksheets(2).Range(Cells(13, 6), Cells(13, 6 + RC)).Copy
  2.   Worksheets(1).Cells(13, 7 + RC).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
  3.         :=False, Transpose:=False
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ºw¤ô¦¨ªe¡C²É¦Ì¦¨ÅÚ¡A¤Å»´¤vÆF¡A¤Å¥Hµ½¤p¦Ó¤£¬°¡C
ªð¦^¦Cªí ¤W¤@¥DÃD