Is there a more efficient way to code this series of snippets which hide all blank lines between specific non contiguous ranges over a few sheets?
Code:
'Hides blank rows
Set Rng = Range("$C$9:$C$95,$C$101:$C$198")
For Each Area In Rng.Areas
For Each Cell In Area
If Cell.Value = "" Then Cell.EntireRow.Hidden = True
Next Cell
Next Area
Set Rng = Sheets("WI").Range("WI451Names")
For Each Area In Rng.Areas
For Each Cell In Area
If Cell.Value = "" Then Cell.EntireRow.Hidden = True
Next Cell
Next Area
Set Rng = Sheets("Bits").Range("Bits451Names")
For Each Area In Rng.Areas
For Each Cell In Area
If Cell.Value = "" Then Cell.EntireRow.Hidden = True
Next Cell
Next Area
Set Rng = Sheets("PPE").Range("PPE451Names")
For Each Area In Rng.Areas
For Each Cell In Area
If Cell.Value = "" Then Cell.EntireRow.Hidden = True
Next Cell
Next Area
Set Rng = Sheets("WI").Range("WI454Names")
For Each Area In Rng.Areas
For Each Cell In Area
If Cell.Value = "" Then Cell.EntireRow.Hidden = True
Next Cell
Next Area
Set Rng = Sheets("Bits").Range("Bits454Names")
For Each Area In Rng.Areas
For Each Cell In Area
If Cell.Value = "" Then Cell.EntireRow.Hidden = True
Next Cell
Next Area
Set Rng = Sheets("PPE").Range("PPE454Names")
For Each Area In Rng.Areas
For Each Cell In Area
If Cell.Value = "" Then Cell.EntireRow.Hidden = True
Next Cell
Next Area