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

·Q§âsheet¸Ì­±ªº¸ê®Æ ©î¦¨¤£¦PªºÀÉ®×

·Q§âsheet¸Ì­±ªº¸ê®Æ ©î¦¨¤£¦PªºÀÉ®×

¥ý«eªº°ÝÃD §Ú§Q¥Îgoogle ©M¤§«e¦b³o¾Ç¨ìªºª¾ÃÑ ¤w¸g¾a¦Û¤v¸Ñ¤F
²{¦b¦³¨â­Ó·sªº°ÝÃDª¦¤å¬d¤£¨ì ·Q½Ð°ª¤âÀ°­Ó¦£ÁÂÁÂ

1 .¥i§_¥Îvba¥hŪ¨ì¬Y­Ó¸ê®Æ§¨¸Ì­±*.xls ªº¼Æ¶q(´N¬O¦³´X­ÓÀÉ®×)
2. °²³]Àɮ׶}°_«á¦p¤U,©¹¤Uªº¸ê®Æ¦³«Ü¦hµ§(µLªk¦ô­p),§Æ±æ¯à°µ¨ì30µ§¸ê®Æ¬°¤@­Ó³æ¦ì©î¶},³Ì«á¤£º¡30µ§¤]©î¦¨¤@­ÓÀÉ®×
  ÀɦW¤À§O¬°­ì©lÀÉ®×ÀɦW¥[¤W-1, -2,-3,¤]´N¬OXXX-1.xls,XXX-2.xls,XXX-3.xls ....

¨Ò:
     1   a   a1
       2   b   b1
     3   c   c1
     .    .     .
       .    .    .   
      31  aa   aa1
      32   bb   bb1
      .     .      .
      .     .      .

      61   aaa  aaa1
      62    bbb  bbb1
  
ÁÂÁ ·P¿E¤£ºÉ

  1. Sub ¤ÀÀÉ¥t¦s()
  2. Set ab = ThisWorkbook
  3. Set sh = ActiveSheet
  4. For i = 1 To sh.[A65536].End(xlUp).Row Step 30
  5. With Sheets.Add
  6.    sh.Cells(i, 1).Resize(30, 3).Copy .[A1]
  7.    .Move
  8.    With ActiveWorkbook
  9.    n = n + 1
  10.    .SaveAs Replace(ab.FullName, ".xls", "-" & n & ".xls") 'Àx¦sÀÉ®×
  11.    .Close 0
  12.    End With
  13. End With
  14. Next


  15. End Sub
  16. Sub Àɮ׼ƶq()
  17. fs = Dir("E:\*.xls") '·j´M¥Ø¿ý
  18. Do Until fs = ""
  19.    cnt = cnt + 1
  20.    fs = Dir
  21. Loop
  22. MsgBox "·j´M¨ì" & cnt & "­ÓÀÉ®×"
  23. End Sub
½Æ»s¥N½X
¦^´_ 1# ffntldj
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 2# Hsieh


    ª©¥D ÁÂÁ§A ·P¿E¤£ºÉ ©ú¤Ñ¸Õ¸Õ¬Ý

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD