---
title: "HandleError"
description: "Die VBA-Prozedur HandleError zeigt einen Fehler aus einer Excel-Funktion im Standardlayout von Invantive an."
language: de
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/de/docs/invantive-control-for-excel/vba-procedures/handleerror
original: https://documentation.invantive.eu/en/docs/invantive-control-for-excel/vba-procedures/handleerror
updated: 2026-12-04T00:12:54Z
license: https://documentation.invantive.eu/de/
---

Die VBA-Prozedur `HandleError` zeigt einen Fehler aus einer Excel-Funktion im Standardlayout von Invantive an.

Parameter:
- `functionName`: Name der Excel-Funktion, die den Fehler verursacht.

## Beispiele
`HandleError` wird typischerweise aus VBA mit einer Logik wie folgt aufgerufen:

```vba
Function MY_FUNC() As String
    On Error GoTo Catch
    '
    MY_FUNC = "ANSWER"    
Finally:
    Exit Function
Catch:
    HandleError "MY_FUNC"
End Function
```


## Anmerkungen zu dieser Version

- [Invantive Control for Excel](/de/release-notes/products/invantive-control-for-excel)
  - [26.0 bis 27.0](/de/release-notes/products/invantive-control-for-excel?step=26.0-to-27.0)
  - [25.0 bis 26.0](/de/release-notes/products/invantive-control-for-excel?step=25.0-to-26.0)
