Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VBA ==> On Error Anweisung

Empfohlene Antworten

Veröffentlicht

Hi,

so ich hab mal in meinen Code ne error anweisung eingebaut weil es mal vorkommt das er da an ner stelle "hängen" bleibt.


Sub test()

...

...

On Error Goto Fehler

Anweisung1

On Error Goto 0

....

...

...

Fehler:

Anweisung2

Resume 0

...

...

End Sub

So falls jetzt ein Fehler bei Anweisung1 auftritt, dann geht er ja in die Sprungmarke "Fehler" rein, führt dort die Anweisung2 aus und geht mit "Resume 0" zur Anweisung1 zurück....so jetzt ist mein problem das wenn es keinen Fehler gibt, kommt eine vbfehlermeldung an der Stelle "Resume 0" und die fm ist "Resume ohne Fehler"......hmm jetzt versteh ich nicht warum der dan beim ausführen überhaupt in die Sprungmarke "Fehler" reingeht wenn er ja gar keinen Fehler endeckt???

mfg

vor Fehler Exit Sub einfügen

...

Exit Sub

Fehler:

that's it

Grüße

Buell

ach ja stimmt ja!

ok vielen dank jetzt funzt :D

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.