ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Deleting empty rows (special case) (https://www.excelbanter.com/excel-discussion-misc-queries/93531-deleting-empty-rows-special-case.html)

Ali

Deleting empty rows (special case)
 
Hi everybody,

I have 63000 rows in which I wanna delete even OR odd rows. I know for small
data how to delete rows but for this huge number of rows what is the easiest
way?
many thanks.
Ali

Don Guillett

Deleting empty rows (special case)
 
one way

Sub Macro1()
For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -2
Rows(i).Delete
'or hide
'Cells(i, 1).EntireRow.Hidden = True
Next
End Sub

--
Don Guillett
SalesAid Software

"Ali" wrote in message
...
Hi everybody,

I have 63000 rows in which I wanna delete even OR odd rows. I know for
small
data how to delete rows but for this huge number of rows what is the
easiest
way?
many thanks.
Ali





All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com