Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
My data spreadsheet contains multiple empty rows found among thousands of
filled rows. Is there a way to delete the empty rows collectively without having to do each one separately? Thank you |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this small macro:
Sub macro_der() Dim i As Long, nLastRow As Long Set r = ActiveSheet.UsedRange nLastRow = r.Rows.Count + r.Row - 1 Set r = Rows(nLastRow + 1) For i = 1 To nLastRow If Application.CountA(Rows(i)) = 0 Then Set r = Union(r, Rows(i)) End If Next r.Delete End Sub -- Gary''s Student - gsnu200908 "Bill" wrote: My data spreadsheet contains multiple empty rows found among thousands of filled rows. Is there a way to delete the empty rows collectively without having to do each one separately? Thank you |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Select a column.
F5SpecialBlanksOK EditDeleteEntire Row Gord Dibben MS Excel MVP On Sat, 14 Nov 2009 16:31:01 -0800, Bill wrote: My data spreadsheet contains multiple empty rows found among thousands of filled rows. Is there a way to delete the empty rows collectively without having to do each one separately? Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count filled data rows until empty | Excel Discussion (Misc queries) | |||
delete empty rows | Excel Discussion (Misc queries) | |||
How to Delete empty rows in excel in b/w rows with values | Excel Worksheet Functions | |||
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows | Excel Worksheet Functions | |||
delete empty rows between rows with text | Excel Discussion (Misc queries) |