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

[µo°Ý] ½Ð±Ð¤u§@ªí¶¡¤Á´«ªº°ÝÃD

[µo°Ý] ½Ð±Ð¤u§@ªí¶¡¤Á´«ªº°ÝÃD

[ª©¥DºÞ²z¯d¨¥]
  • GBKEE(2016/1/30 15:13): Àɮ׶·¥ÎÀ£ÁYÀɤW¶Ç

§Úªºµ{¦¡¬O¦C¦L¤j¬ù»Ý500±iªºªí®æ¡A©Ò¥H¥ý¦b1.¡¨¥Î¤ô¸ê®Æ¡¨ªºsheet­pºâ§¹²¦«á2.·s¼W(mySheet")¤u§@ªí3.³]©w¦U¦CÄæ¼e4.¤Á´«¦^("¤ô³æ¦C¦Lªí®æ")ªº¤u§@ªí¡A±N­ì¥»µe¦nªºªí®æ(Range("A1:H24")¡A½Æ»s5.¦A¦^(mySheet")¶K¤W500±i¡A¥i¬O²{¦b°ÝÃD¬O¡A²Ä¤F²Ä5­Óµ{§Ç¡A®Ñ­±¤Î§@¥Î¤u§@ªíÁÙ¬O°±¯d¦b("¤ô³æ¦C¦Lªí®æ")ªº¤u§@ªí¤W¡A¤£ª¾­þ¸Ì¥X°ÝÃD¡Aªì¾Ç·s¤â¡A½Ð±Ð°ª¤â­Ì!!
:L
¥t¥~½Ð°Ý,ªí®æ¥H½Æ»s¶K¤W500¦h¦¸¡A±N·|¯Ó¶O³\¦h®É¶¡¡A½Ð°Ý¦³¤°»ò¤èªk¥i¥HÁYµu²£¥X³øªí®É¶¡??
  1. Sub ·s¼W¤u§@ªí()
  2. Dim StBase As String, myInc As Integer
  3. Dim mySheet As Worksheet
  4. Set mySheet = Worksheets.Add
  5. Total_People = Sheets("¥Î¤ô¸ê®Æ").Range("d7").Value
  6. StBase = "¦¬¶O³æ"
  7. myInc = 1
  8. On Error Resume Next
  9. mySheet.Name = StBase & myInc
  10. Do Until Err.Number = 0
  11. Err.Clear
  12. myInc = myInc + 1
  13. mySheet.Name = StBase & myInc
  14. Loop
  15. Sheets("mySheet").Select
  16. <<³]©w¦U¦CÄæ¼e>>
  17. ActiveWindow.SelectedSheets.VPageBreaks.Add Before:=ActiveCell
  18. Sheets("¤ô³æ¦C¦Lªí®æ").Select  ³o¸Ìªºsheet¥i¥H©I¥s¥X¨Ó
  19. Range("A1:H24").Select
  20. Selection.Copy
  21. Sheets("mySheet").Select ¦ý³o¸Ìªºsheet´N¥s¤£¥X¨Ó??
  22. o = 1
  23. For y = 1 To Total_People
  24. Cells(o, 1).Select
  25. ActiveSheet.Paste
  26. o = o + 24
  27. Next y
½Æ»s¥N½X

¦^´_ 1# cmark3300
¤£¬O Sheets("mySheet").Select
Âù¤Þ¸¹¤º¬O«ü ¦¬¶O³æ1 , ¦¬¶O³æ2.... ³o¨Ç¦WºÙ
À³¸Ó¬O¥Î mySheet.Select

¥t¥~µ{¦¡¬Ý¤£¨ì½Æ»s500±i¡A³Ì¦nªþÀɬݬÝ
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

©êºp¡A»¡ªº¤£¬O«Ü²M·¡¡A¤W­±Total_Peopleªº­È¨C¦¸¶]¥X¨Ó¡A³£·|¦b500¤W¤U¡A©Ò¥H°j°é·|¶]¤F500¦¸¶K¤Wªí®æ¡AµM«á¡A¦A§â¸ê®Æ©ñ¶i¥h¨C±iªí®æªºÄ椺¡A¤u§@ªí¤Á´«¥i¥H¤F¡AÁÂÁ°ª¤â!!

TOP

­Y¬O¯Â¤À¶}¦C¦L»Ý¨D¡A¥u­n¤@±i¡e¸ê®Æ¨Ó·½ªí¡f¤Î¤@±i¡e¦C¦L®Mªí¡f§Y¥i¡A
¨S¦³ÀɮסA¨S¦³¸Ô²Ó»¡©ú¡AÔ£¤]¿ì¤£¤F¡I¡I¡I

TOP

        ÀR«ä¦Û¦b : ¦³¦h¤Ö¤O¶q´N°µ¦h¤Ö¨Æ¡A¤£­n¤ß¦sµ¥«Ý¡Aµ¥«Ý¤~·|¸¨ªÅ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD