---
title: "HandleError"
description: "The VBA procedure HandleError presents an error from an Excel function in the standard Invantive layout."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-control-for-excel/vba-procedures/handleerror
original: https://documentation.invantive.eu/en/docs/invantive-control-for-excel/vba-procedures/handleerror
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

The VBA procedure `HandleError` presents an error from an Excel function in the standard Invantive layout.

Parameters:
- `functionName`: name of Excel function causing the error.

## Examples
`HandleError` is typically invoked from VBA using logic like:

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


## Release Notes

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

