---
title: "I_HideEmptyRowsForRange"
description: "The VBA procedure I_HideEmptyRowsForRange hides all rows in a range when all columns in that range are null and/or empty and/or 0."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/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-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

The VBA procedure `I_HideEmptyRowsForRange` hides all rows in a range when all columns in that range are null and/or empty and/or 0. Typically used to hide all empty rows after fetching data.

Parameters:
- `rangeToCheck`: Excel range to hide rows for that meet the criteria.

## Examples
The following code hides each row where a column cell values are empty and/or null and/or 0:
```vba
HideEmptyRowsForRange("a1:g14")
```

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

