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

[µo°Ý] ½Ð°Ý«e½ú­Ì ¦p¦óÅýVBA ¨Ì¾ÚÄæ¦ì¸Ìªº¦WºÙ¥h·j¯Á¨ì¦P¦WºÙªº¤u§@ªí

[µo°Ý] ½Ð°Ý«e½ú­Ì ¦p¦óÅýVBA ¨Ì¾ÚÄæ¦ì¸Ìªº¦WºÙ¥h·j¯Á¨ì¦P¦WºÙªº¤u§@ªí

½Ð°Ý«e½ú­Ì ¦p¦óÅýVBA ¨Ì¾ÚÄæ¦ì¸Ìªº¦WºÙ¥h·j¯Á¨ì¦P¦WºÙªº¤u§@ªí
§Ú°µ¤F¤@­Ó¾P³f¨t²Î  ¦b"¾P³f³æ"¤u§@ªí¤W§¹¦¨¶ñ¼g«á «ö¤U«ü©wªº¥¨¶°
´N·|¦Û°Ê¾É¤J"¾P³f²M³æ"¤¤
°ÝÃD¨Ó¤F ¦]¬°«È¤á²£«~³£¤£¬Û¦P ©Ò¥H¶·­n§â¦U«È¤áªº¾P³f²M³æ¤À¶}
¨Ò¦p¤À¦¨¾P³f²M³æA¬°"A¤½¥q"¤u§@ªí¦WºÙ©M¾P³f²M³æB¬°"B¤½¥q"¤u§@ªí¦WºÙ
¦bA1Äæ¦ì ³]¸m¤F¸ê®ÆÅçÃÒªº²M³æ ¥i¨Ñ¿ï¾ÜA¤½¥q¡BB¤½¥q
¦p¦óÅýVBA ¨Ì¾ÚA1Äæ¦ìªº¦WºÙ ¥h·j´M¨ì©MA1Äæ¦ì¦P¦WºÙªº¤u§@ªí©O??
«ü¥O¸Ó¦p¼g©O??
«ô°U«e½ú­Ì«ü¾É«ü¾É§Ú «D±`·PÁÂ

¦^´_ 2# lpk187
§Ñ¤F©M«e½ú»¡ §A©Ò¬Ý¨ìªº1~12¤ë¥÷ªº®æ¦¡ ´N¬O¤§«eªº¤H¯d¤U¨Óªº®æ¦¡
¦ý¬O ¬O¤@¶¡«È¤á ¤@­ÓEXCELÀÉ ¦ý§Ú´N¬O¤£·Q¨C¦¸³£­n¶}¤@°ïÀÉ®× ¤~·|·Q§â¥¦¾ã¦X¦¨¤@­Óªº
«È¤áÁöµM¤£¤Ö¶¡ ¦ý¹ê»Ú¦³1~12¤ë¤À³£¦³¥s³f¬ö¿ýªº ¬ù²ö10¶¡¥ª¥k
½Ð«e½ú¦h¦h«ü±Ð

TOP

¦^´_ 2# lpk187
«e½ú ¤£¦n·N«ä §Ú¤£¯à¨p°T§A ©Ò¥H¦b³o¸Ì©M§AÁpµ¸
Ãö©ó«e½ú´£ªº½ÆÂø©Ê §Ú¦Û¤v¦³·NÃÑ¨ì ¦ý§Ú¤£¬O¾Ç³o¥X¨­ªº
©Ò¥H¥u¯àµwµÛÀY¥Ö¸Õ¬Ý¬Ý
¦Ü©ó¦~«×°ÝÃD §Ú¬O¥´ºâ¥Î¥t¦sÀɮתº¤è¦¡¨Ó°µ°Ï¹j
¨Ò¦p104¦~12¤ëµ²§ô«á §Ú±NÀÉ®×¥t¦s¦¨105¦~«× µM«á¿ý»s¤@­Ó¦~«×´_Âkªº«ö¶s
±N¦U¤½¥qªº¾P³f²M³æ§R°£¦¨ªÅ¥Õ ¦A­«·s¶}©l105¦~«×
³o¼Ë¥i¦æ¶Ü??
¤£ª¾¬O§_ ¥i©M«e½ú¨p¤UÁpµ¸ ·Q¦hª¾¹D «e½ú»¡ªº¸ê®Æ®wªº¤è¦¡ ¬O«ç»ò¼Ëªº¤@­Ó¨t²Î
ÁÂÁ«e½ú!!

TOP

¦^´_ 11# ­ã´£³¡ªL

ÁÂÁª©¤j §Ú·|¥h¬Ýªº ·PÁª©¤j

TOP

¦^´_ 10# lpk187
ªGµM¸ò«e½ú»¡ªº¤@¼Ë ´«¨ì¤W¤@¦æ´N¥¿½T¤F:victory:

TOP

¦^´_ 8# ¶¶¶Õ¦Ó¬°


Sub ¾É¤J()
Dim xS As Worksheet¡@

¼gVBA½Ð¾i¦¨¡eÅܼơf«Å§i¡I

¶iVBE»¡©úÀÉ¡A¤F¸Ñ¤@¤U¡e°Ï°ìÅܼơf¡e¼Ò²ÕÅܼơf¡e¥þ°ìÅܼơfªº«Å§i¤è¦¡¤Î¥\¥Î¡A
¹ï¥H«á¼g½ÆÂøµ{¦¡µ´¹ï¦³¥Î¡ã¡ã

TOP

¦^´_ 8# ¶¶¶Õ¦Ó¬°

§A§âIf xS Is Nothing Then MsgBox "¤u§@ªí¤£¦s¦b": Exit Sub§â³o¦C©ñ¨ì
On Error GoTo 0 ¤W­±¬Ý¬Ý

TOP

¦^´_ 7# lpk187

¯uªº«Ü·PÁ±z~

TOP

¦^´_ 6# ­ã´£³¡ªL

­ã´£³¡ªLª©¤j: ÁÂÁ±zªºÄ_¶Q´£¿ô ,ªº½T¦³³o¤@ÂI¤p¤pªºª¬ªp ¡C
¦ý¬Oª©¤j If xS Is Nothing Then MsgBox "¤u§@ªí¤£¦s¦b": Exit Sub
³o¦æ¶K¤W¥h«á §Ú¥h°µ¤@­Ó¨S¦³¤u§@ªíªº°õ¦æ
«ü¥O¥u¶]¨ì   If xS Is Nothing Then ´N¥X²{°»¿ù¤F
¦Ó¤£·|Ä~Äò¶] MsgBox "¤u§@ªí¤£¦s¦b": Exit Sub ³o¬q¿ù»~´£¿ô
½Ð°Ý§Ú¬O­þ­Ó³¡¤À¿ù¤F??
  1. Sub ¾É¤J()
  2. Application.ScreenUpdating = False
  3. With Sheets("¾P³f³æ")

  4. If .[B12] = "" Then MsgBox "½Ð¿é¤J¸ê®Æ«á¦A«ö«ö¶s ": Exit Sub
  5.     shN = .[O14]
  6.     Ro = .[B27].End(xlUp).Row
  7.     arr = .Range("C12:I" & Ro)
  8.     ¤é´Á = .[h7]
  9. End With
  10. On Error Resume Next 'ªí¥Ü·í¤@­Ó°õ¦æ¶¥¬q¿ù»~²£¥Í®É¡Aµ{¦¡±±¨î¥ß¨è¨ìµo¥Í¿ù»~³¯­z¦¡±µ¤U¥hªº³¯­z¦¡
  11. Set xS = Sheets(shN) '³]©w xS ¬°´M§äªº¤u§@ªí ¦pªG§ä¤£¨ì·|²£¥Í¿ù»~¡A©Ò¥H­n¦³¤W¤@¥y©M¤U¤@¥y
  12. On Error GoTo 0 '°±¤î²{¦bµ{§ÇùØ¥ô¦ó¤w±Ò°Êªº¿ù»~³B²zµ{¦¡

  13. If xS Is Nothing Then MsgBox "¤u§@ªí¤£¦s¦b": Exit Sub

  14. With xS
  15.     xSro = .Cells(Rows.Count, 1).End(xlUp).Row + 1
  16.     .Cells(xSro, "B").Resize(UBound(arr, 1), UBound(arr, 2)) = arr
  17.     .Range("A" & xSro & ":A" & xSro + UBound(arr, 1) - 1) = ¤é´Á
  18. End With
  19. Sheets("¾P³f³æ").Select
  20. Range("B12:B26,D12:D26,H7:H8,H5").ClearContents
  21. Range("C4") = "S" & Format(Right(Range("C4"), 4) + 1, "0000")
  22. Range("O14").Select
  23. Application.ScreenUpdating = True
  24. End Sub
½Æ»s¥N½X

TOP

¦^´_ 6# ­ã´£³¡ªL

¹ï§q¡I§Ñ°O¥[¤F¡A·PÁ­ã¤j´£¿ô¡IÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : §g¤l¬°¥Ø¼Ð¡A¤p¤H¬°¥Øªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD