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

§PÂ_°õ¦æ¥X²{¿ù»~ªº»yªk ?

§PÂ_°õ¦æ¥X²{¿ù»~ªº»yªk ?

§PÂ_°õ¦æ¥X²{¿ù»~ªº»yªk  
Selection.QueryTable.Refresh BackgroundQuery:=False
¤W¦æ°õ¦æ¥X²{¿ù»~ªº»yªk??  if ??????????????  then goto............................
¿ù»~µøµ¡

¤p§Ì¤£¤~,¥uª¾¹D´X­Ó°ò¥»¤èªk

On Error GoTo F1(¦¹¦æ¼g¦b¦³¥i¯àµo¥Í¿ù»~ªº¦a¤è¤§«e§Y¥i),F1¬°¦Û¤v¹w³]ªº¦ì¸m

On Error Resume Next ªí¥Ü·í¤@­Ó°õ¦æ¶¥¬q¿ù»~²£¥Í®É¡Aµ{¦¡±±¨î¥ß¨è¨ìµo¥Í¿ù»~³¯­z¦¡±µ¤U¥hªº³¯­z¦¡¡A¦ÓÄ~Äò°õ¦æ¤U¥h¡C·í¨Ï¥Î¤@­Óª«¥óªº®É­Ô¡A½Ð¨Ï¥Î³o­Ó³¯­z¦¡¡A¦Ó¤£­n¨Ï¥Î On Error GoTo¡C

On Error GoTo 0 °±¤î²{¦bµ{§ÇùØ¥ô¦ó¤w±Ò°Êªº¿ù»~³B²zµ{¦¡¡C
PKKO

TOP

¤]¥i³z¹L¿ù»~¥N½X,¨Ó¿ï¾Ü°õ¦æ
Sub test()
'
On Error Resume Next '©¿²¤¿ù»~

Range("F2:k102").Copy '¿ù»~¥Ü½d
Range(a1).PasteSpecial '¿ù»~¥Ü½d

MsgBox "¿ù»~¥N½X¬°:" & Err.Number '¿ù»~°T®§¥N½X

Select Case Err.Number '¿ï¾Ü¿ù»~¥N½X

Case 1004
MsgBox Err.Number & "§ì¨ì§A¤F"
Case 1005
MsgBox ("©Ç©Çªº")

End Select

End Sub
PKKO

TOP

¤]¥i³z¹L¿ù»~¥N½X,¨Ó¿ï¾Ü°õ¦æ
Sub test()
'
On Error Resume Next '©¿²¤¿ù»~

Range("F2:k102").Copy  ...
PKKO µoªí©ó 2014-8-6 14:22


¦p¦óª¾¹D¿ù»~ªº¸¹½X¬O´X¸¹??

TOP

MsgBox "¿ù»~¥N½X¬°:" & Err.Number '¿ù»~°T®§¥N½X

Err.Number ´N¬O¿ù»~¥N½X
PKKO

TOP

        ÀR«ä¦Û¦b : ¡i¬°µ½Ävª§¡j¤H¥Í­n¬°µ½Ävª§¡A¤À¬í¥²ª§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD