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

¤@­ÓÃö©óVBA¦Û°Ê§Y®Éø»sªÑ²¼¹Ïªº°ÝÃD

¤@­ÓÃö©óVBA¦Û°Ê§Y®Éø»sªÑ²¼¹Ïªº°ÝÃD

§Úªº¬¡­¶Ã¯¦³¨â­Ó¤u§@ªí¡A¤@­Ó¬O¬ü¤¸«ü¼Æ¡B¥t¤@­Ó¬O¥x«ü´Á
"¬ü¤¸«ü¼Æ"¤u§@ªíªºmodel¦p¤U¡A"¥x«ü´Á"ªº¤º®e¤@¼Ò¤@¼Ë¡A¥u¬O§â"¬ü¤¸«ü¼Æ"´«¦¨"¥x«ü´Á"
¨â­Ó¤u§@ªí³£¬O¨C¹j¤Q¬í¥h°O¿ý¼Æ¾Ú¡AµM«á§â¼Æ¾Úµe¦¨¹Ï
°ò¥»¤W°O¿ý¼Æ¾Ú©Mµe¹Ï³£¨S¦³°ÝÃD
¦ý«Ü©_©Çªº¬O¡A§Ú"¦P®É±Ò°Ê"¨â­Ó¤u§@ªíªº¥¨¶°®É¡A¬°ªº¬O¨â­Ó¤u§@ªí¦P®É°O¿ý¦U¦Ûªº¼Æ¾Ú¡Bµe¦U¦Ûªº¹Ï
¥i¬O§Úªºµe­±°±¦b"¬ü¤¸«ü¼Æ"¤u§@ªí¥L·|¥¿±`¹B§@¡A¦b³o­Ó¦P®É"¥x«ü´Á"¤u§@ªíªº¥¨¶°«o¼È°±°O¿ý¼Æ¾Ú©Mµe¹Ï
¨º»ò¦pªGµe­±°±¦b"¥x«ü´Á"¡A¥L·|¶}©l¥¿±`¹B§@¡A¥i¬O"¬ü¤¸«ü¼Æ"«o¼È°±¹B§@¤F
Á`¤§¥u¦³§Úµe­±¤Wªº¤u§@ªí·|¥¿±`¹B§@¡A¥t¤@­Ó´N·|¼È°±
¦Ó¹B§@ªº³o­Ó¤]¦³ÂI©Ç¡Aµ{¦¡¤¤©ú©ú¬O10¬í¬ö¿ý¤@¦¸¡A·|Åܦ¨5¬í´N¬ö¿ý¤@¦¸!!
°£«D§Ú¤@¦¸¥u°õ¦æ¤@­Ó¤u§@ªíªº¥¨¶°¤~·|¥¿±`...
½Ð°Ý¬O­þ¸Ì¥X¤F°ÝÃD?ÁÂÁÂ!
  1. Dim Total_Num As Integer

  2. Private Sub Workbook_Open()

  3.     Total_Num = 0     '³]©wªì­È
  4.     Sheets("¬ü¤¸«ü¼Æ").Select   '³]©w¤@¶}±Ò­n¨Ï¥Îªº¤u§@ªí¦WºÙ
  5.     Range("L14").Select         '³]©w¤@¶}©lªºÀx¦s®æ¦ì¸m
  6.     Call ¬ö¿ý¬ü¤¸«ü¼Æ³]©w
  7.    
  8.     End Sub
  9.     Private Sub ¬ö¿ý¬ü¤¸«ü¼Æ³]©w()
  10.   Total_Num = Total_Num + 1 '¨C°õ¦æ¤@¦¸´N+1
  11.   If Total_Num <= 18000 Then   
  12.     Application.OnTime Now + TimeValue("00:00:10"), "¬ö¿ý¬ü¤¸«ü¼Æ"  '¨C10¬í¬ö¿ý¤@¦¸
  13.   End If
  14.   End Sub

  15. Sub ¬ö¿ý¬ü¤¸«ü¼Æ()
  16. '
  17. ' ¬ö¿ý1 Macro
  18. ' iamtwispin ¦b 2015/4/11 ¿ý»sªº¥¨¶°
  19. '
  20. ' §Ö³tÁä: Ctrl+o
  21.     'Real
  22.      x = 24 '¤º½L
  23.      While Cells(x, 2).Value <> ""
  24.          x = x + 1
  25.      Wend
  26.      Cells(x, 2).Value = Cells(23, 2).Value
  27.      
  28.      x = 24 '¥~½L
  29.      While Cells(x, 3).Value <> ""
  30.          x = x + 1
  31.      Wend
  32.      Cells(x, 3).Value = Cells(23, 3).Value
  33.      
  34.    
  35.     Call ¬ö¿ý¬ü¤¸«ü¼Æ³]©w


  36. End Sub
½Æ»s¥N½X

¤£¹L¦pªG¤Á´«¨ì¥t¤@­Ó¬¡­¶Ã¯ªº¸Ü
·|¥X²{¿ù»~°T®§
©ó¬O§Ú¤S§âworkbooks("XX.xls")¥[¶i¥h
Åý¥¦§óºë·Çªº©w¦ì
´N¥i¥HÅo~

TOP

¥i¥H¤F~
·PÁÂGB¤j

TOP

¦^´_ 1# twispin
¸Õ¸Õ¬Ý
  1. Sub ¬ö¿ý¬ü¤¸«ü¼Æ()
  2.     Dim x As Integer
  3.      With Sheets("¬ü¤¸«ü¼Æ") '¤£ºÞµe­±(ActiveSheet [§@¥Î¤¤ªº¤u§@ªí])¦b­þ¸Ì
  4.         x = 24 '¤º½L
  5.         While .Cells(x, 2).Value <> ""
  6.             x = x + 1
  7.         Wend
  8.         .Cells(x, 2).Value = .Cells(23, 2).Value
  9.         x = 24 '¥~½L
  10.         While .Cells(x, 3).Value <> ""
  11.             x = x + 1
  12.         Wend
  13.         .Cells(x, 3).Value = .Cells(23, 3).Value
  14.      End With
  15.     Call ¬ö¿ý¬ü¤¸«ü¼Æ³]©w
  16. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ­ì½Ì§O¤H´N¬Oµ½«Ý¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD