Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've used some code which I usedin antoher file to delete empty rows.
Maybe of use for other people: Sub hiderows3() Dim NullRange As Range Set NullRange = Nothing For i = 1 To ActiveSheet.UsedRange.Rows.Count If Range("J" & i).Value = "" Then If NullRange Is Nothing Then Set NullRange = (Cells(i, 1)) Else Set NullRange = Union(NullRange, Cells(i, 1)) End If End If Next If Not (NullRange Is Nothing) Then NullRange.EntireRow.Hidden = True 'hide the rows which satisfy the condition. End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How we can hide the rows no. 1,2,3,4,.. &Column no. A,B,C,D...AA | Excel Worksheet Functions | |||
Hide Rows using a returtn value in a column | Excel Programming | |||
Macro to Hide rows based on value of column F | Excel Discussion (Misc queries) | |||
hide column and rows | Excel Discussion (Misc queries) | |||
chk box to filter or hide rows based on value in a column | Excel Programming |