- ©«¤l
- 11
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- EXCEL 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- °ª¶¯
- µù¥U®É¶¡
- 2015-10-2
- ³Ì«áµn¿ý
- 2021-8-3
|
¦^´_ 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??- Sub ¾É¤J()
- Application.ScreenUpdating = False
- With Sheets("¾P³f³æ")
- If .[B12] = "" Then MsgBox "½Ð¿é¤J¸ê®Æ«á¦A«ö«ö¶s ": Exit Sub
- shN = .[O14]
- Ro = .[B27].End(xlUp).Row
- arr = .Range("C12:I" & Ro)
- ¤é´Á = .[h7]
- End With
- On Error Resume Next 'ªí¥Ü·í¤@Ó°õ¦æ¶¥¬q¿ù»~²£¥Í®É¡Aµ{¦¡±±¨î¥ß¨è¨ìµo¥Í¿ù»~³¯z¦¡±µ¤U¥hªº³¯z¦¡
- Set xS = Sheets(shN) '³]©w xS ¬°´M§äªº¤u§@ªí ¦pªG§ä¤£¨ì·|²£¥Í¿ù»~¡A©Ò¥Hn¦³¤W¤@¥y©M¤U¤@¥y
- On Error GoTo 0 '°±¤î²{¦bµ{§ÇùØ¥ô¦ó¤w±Ò°Êªº¿ù»~³B²zµ{¦¡
- If xS Is Nothing Then MsgBox "¤u§@ªí¤£¦s¦b": Exit Sub
- With xS
- xSro = .Cells(Rows.Count, 1).End(xlUp).Row + 1
- .Cells(xSro, "B").Resize(UBound(arr, 1), UBound(arr, 2)) = arr
- .Range("A" & xSro & ":A" & xSro + UBound(arr, 1) - 1) = ¤é´Á
- End With
- Sheets("¾P³f³æ").Select
- Range("B12:B26,D12:D26,H7:H8,H5").ClearContents
- Range("C4") = "S" & Format(Right(Range("C4"), 4) + 1, "0000")
- Range("O14").Select
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|