---
title: "HandleError"
description: "VBA-proseduuri HandleError n\u00E4ytt\u00E4\u00E4 virheen Excel-funktiosta Invantiven tavallisessa asettelussa."
language: fi
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/fi/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:57Z
license: https://documentation.invantive.eu/fi/
---

VBA-proseduuri `HandleError` näyttää virheen Excel-funktiosta Invantiven tavallisessa asettelussa.

Parametrit:
- `functionName`: Virheen aiheuttavan Excel-funktion nimi.

## Esimerkkejä
`HandleError` kutsutaan tyypillisesti VBA:sta seuraavanlaisella logiikalla:

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


## Julkaisutiedot

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