---
title: "I_HideEmptyRowsForRange"
description: "VBA\u30D7\u30ED\u30B7\u30FC\u30B8\u30E3 I_HideEmptyRowsForRange \u306F\u3001\u305D\u306E\u7BC4\u56F2\u5185\u306E\u3059\u3079\u3066\u306E\u5217\u304C null \u304A\u3088\u3073/\u307E\u305F\u306F\u7A7A\u304A\u3088\u3073/\u307E\u305F\u306F 0 \u3067\u3042\u308B\u5834\u5408\u3001\u7BC4\u56F2\u5185\u306E\u3059\u3079\u3066\u306E\u884C\u3092\u975E\u8868\u793A\u306B\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/i-hideemptyrowsforrange
original: https://documentation.invantive.eu/en/docs/invantive-control-for-excel/vba-procedures/i-hideemptyrowsforrange
updated: 2026-12-04T00:13:32Z
license: https://documentation.invantive.eu/ja/
---

VBAプロシージャ `I_HideEmptyRowsForRange` は、その範囲内のすべての列が null および/または空および/または 0 である場合、範囲内のすべての行を非表示にします。 通常、データを取得した後に空の行をすべて非表示にするために使用します。

パラメータ:
- `rangeToCheck`: 条件を満たす行を非表示にするExcelの範囲。

## 例
次のコードは、列のセルの値が空および/またはnullおよび/または 0 である各行を非表示にします:
```vba
HideEmptyRowsForRange("a1:g14")
```


## リリース情報

- [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)
