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

[µo°Ý] ½Ð°Ý¥HÄ欰¥DªºÀx¦s®æ~¦p¦ó³]©w°j°é?(¤w¸Ñ¨M)

[µo°Ý] ½Ð°Ý¥HÄ欰¥DªºÀx¦s®æ~¦p¦ó³]©w°j°é?(¤w¸Ñ¨M)

¥»©«³Ì«á¥Ñ ´Ñ»y³¾»ï ©ó 2011-9-21 21:25 ½s¿è

½Ð°Ý¦p¦ó§â¤U­±¼g¦¨°j°é(¦@20­Ó)
¦]¬°¤¤¦³Àɮפ@¤¤(¨C2Äæ´N¦³¥[¤F¤@Äæ¸ê®Æ)~©Ò¥H±q²Ä¤G¦¸¶K¨ìÀɮפG®É·|´î¤@Äæ
¿ý»sªºµ{¦¡½X¦p¤U:
½Ð°Ý°j°é­n¦p¦ó¼g?
¶¶«K°Ý¤@¤U:column(2)=Columns("B")
Columns("B:C")¤¤ªºBC­n¦p¦ó¥H¼Æ¦r¤è¦¡§e²{??
  1. Sub °j°é´ú¸Õ()

  2.     Windows("Àɮפ@.xlsb").Activate
  3.     Sheets("¿é¤J¤@").Select
  4.     Columns("T:U").Select
  5.     Selection.Copy
  6.     Windows("ÀɮפG.xlsb").Activate
  7.     Columns("T:U").Select
  8.     ActiveSheet.Paste
  9.     Windows("Àɮפ@.xlsb").Activate
  10.     Sheets("¿é¤J¤@").Select
  11.     Columns("W:X").Select
  12.     Application.CutCopyMode = False
  13.     Selection.Copy
  14.     Windows("ÀɮפG.xlsb").Activate
  15.     Sheets("¶K¤W¦ì¸m").Select
  16.     Columns("V:W").Select
  17.     ActiveSheet.Paste
  18.     Windows("Àɮפ@.xlsb").Activate
  19.     Sheets("¿é¤J¤@").Select
  20.     Columns("Z:AA").Select
  21.     Application.CutCopyMode = False
  22.     Selection.Copy
  23.     Windows("ÀɮפG.xlsb").Activate
  24.     Sheets("¶K¤W¦ì¸m").Select
  25.     Columns("X:Y").Select
  26.     ActiveSheet.Paste
  27.     Windows("Àɮפ@.xlsb").Activate
  28.     Sheets("¿é¤J¤@").Select
  29.     Columns("AC:AD").Select
  30.     Application.CutCopyMode = False
  31.     Selection.Copy
  32.     Windows("ÀɮפG.xlsb").Activate
  33.     Sheets("¶K¤W¦ì¸m").Select
  34.     Columns("Z:AA").Select
  35.     ActiveSheet.Paste
  36.     Windows("Àɮפ@.xlsb").Activate
  37.     Columns("AF:AG").Select
  38.     Application.CutCopyMode = False
  39.     Selection.Copy
  40.     Windows("ÀɮפG.xlsb").Activate
  41.     Sheets("¶K¤W¦ì¸m").Select
  42.     Columns("AB:AC").Select
  43.     ActiveSheet.Paste
  44.     Windows("Àɮפ@.xlsb").Activate
  45.     Range("A1").Select
  46.     Application.CutCopyMode = False
  47.     Range("S1").Select
  48. End Sub
½Æ»s¥N½X

¦^´_ 2# GBKEE


    G¤j±z¯u±j¡A³o»òµuªº®É¶¡´N§ï¦n¤F¡A¦Ó¥B¼g±o³o»ò¸Ô²Ó!¤@¬Ý´N©úÁA!§¹¥þ¥¿½T~¬Ù¤F§Ú¦n¦hªº®É¶¡!ÁÂÁ±z¤F~~

TOP

¦^´_ 1# ´Ñ»y³¾»ï
  1. Sub Ex()
  2.     Dim Rng As Range, Rng1 As Range, i As Integer
  3.     Set Rng = Workbooks("Àɮפ@.xlsb").Sheets("¿é¤J¤@").Columns("T:U")
  4.     Set Rng1 = Workbooks("ÀɮפG.xlsb").Sheets(1).[T1]        'Sheets(1)    ->²Ä1±i¤u§@ªí
  5.     'Set Rng1 = Workbooks("ÀɮפG.xlsb").ActiveSheet.[T1]     'ActiveSheet  ->§@¥Î¤¤ªº¤u§@ªí
  6.     'Set Rng1 = Workbooks("ÀɮפG.xlsb").Sheets("???").[T1]   'Sheets("???") ->«ü©wªº¤u§@ªí
  7.     For i = 1 To 20                     '20¦¸ªº°j°é
  8.         Rng.Copy Rng1
  9.         Set Rng = Rng.Offset(, 3)       '©¹«á¦ì²¾3Äæ
  10.         Set Rng1 = Rng1.Offset(, 3)     '©¹«á¦ì²¾3Äæ
  11.     Next
  12. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¯u¥¿ªº·R¤ß¡A¬O·ÓÅU¦n¦Û¤vªº³oÁû¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD