---
title: "HandleError"
description: "VBA\u30D7\u30ED\u30B7\u30FC\u30B8\u30E3 HandleError \u306F\u3001Excel\u95A2\u6570\u304B\u3089\u306E\u30A8\u30E9\u30FC\u3092\u6A19\u6E96\u306EInvantive\u30EC\u30A4\u30A2\u30A6\u30C8\u3067\u8868\u793A\u3057\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/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:58Z
license: https://documentation.invantive.eu/ja/
---

VBAプロシージャ `HandleError` は、Excel関数からのエラーを標準のInvantiveレイアウトで表示します。

パラメータ:
- `functionName`: エラーの原因となったExcel関数の名前。

## 例
`HandleError` は通常、VBAから次のようなロジックで呼び出されます:

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


## リリース情報

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