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

On Error Goto ¥¢®Ä

On Error Goto ¥¢®Ä

¥»©«³Ì«á¥Ñ enoch ©ó 2017-3-6 10:39 ½s¿è

½Ð°Ý¨Ï¥Î On Error Goto ­n°µ¥ô¦ó³]©w¶Ü?
©Î¥ô¦ó¿ù»~°T®§³£¥i¥H¨Ï¥Î   On Error Goto ©Î On Error Resume Next

°õ¦æ¤U­±¥¨¶°®É, ª½±µÅã¥Ü¿ù»~, ¥¼¯àÅã¥ÜMsgbox °T®§
½Ð«ü±Ð
  1. Sub GetErr2()
  2. On Error GoTo Error_handler:
  3. N = 1 / 0    ' cause an error
  4. Exit Sub

  5. Error_handler:
  6. MsgBox "exception handler"
  7. End Sub
½Æ»s¥N½X

¸Õ¹L¦b¥t¤@³¡¹q¸£°õ¦æ³oµ{¦¡¬O¨S¦³°ÝÃD, ­n­«·s¦w¸Ë Office ¶Ü?

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD