Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
is there a formula to remove all blank rows in a sheet all at once
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this macro:
Sub Macro1() Dim j As Long Dim i As Long Dim r As Range j = 65536 For i = 1 To j If Application.CountA(Rows(i)) = 0 Then If r Is Nothing Then Set r = Rows(i) Else Set r = Union(r, Rows(i)) End If End If Next i If Not r Is Nothing Then r.Delete End If End Sub -- Gary's Student "Bryan" wrote: is there a formula to remove all blank rows in a sheet all at once |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Match then lookup | Excel Worksheet Functions | |||
How do I remove numerous blank rows from Excel spreadsheet? | Excel Discussion (Misc queries) | |||
Hiding Rows if the linked rows are blank | Excel Discussion (Misc queries) | |||
Insert rows | Excel Worksheet Functions | |||
How do I remove blank rows in Excel? | Excel Discussion (Misc queries) |