Hirdetés

Új hozzászólás Aktív témák

  • m.zmrzlina

    senior tag

    válasz Fire/SOUL/CD #8562 üzenetére

    The second form, On Error Resume Next , is the most commonly used and misused form. It instructs to VBA to essentially ignore the error and resume execution on the next line of code. It is very important to remember that On Error Resume Next does not in any way "fix" the error. It simply instructs VBA to continue as if no error occured. However, the error may have side effects, such as uninitialized variables or objects set to Nothing. It is the responsibility of your code to test for an error condition and take appropriate action.

    Ebből a bekezdésből gondoltam, hogy gond lehet abból ha a kód többi részében előfordul egy hiba amire nem készítettem fel a programot. Számomra ez arról szól, hogy az On Error Resume Next önmagában nem old meg semmilyen hibát csak ettől a kód "nem vesz tudomást" a hibáról. Aztán ha én magam intézkedtem a hibakezelésről - mint te a válaszodban adott kóddal - akkor minden ok, ha meg nem akkor....kisnyúl.

Új hozzászólás Aktív témák