---
title: "HandleError"
description: "VBA-proceduren HandleError viser en fejl fra en Excel-funktion i det standardm\u00E6ssige Invantive-layout."
language: da
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/da/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/da/
---

VBA-proceduren `HandleError` viser en fejl fra en Excel-funktion i det standardmæssige Invantive-layout.

Parametre:
- `functionName`: navnet på Excel-funktionen, der forårsager fejlen.

## Eksempler
`HandleError` kaldes typisk fra VBA med logik som:

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


## Udgivelsesnoter

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