#1   Report Post  
Posted to microsoft.public.excel.misc
phil2006
 
Posts: n/a
Default blank rows


I have a table of data, every few rows one is blank, is there a program
that deletes blank rows?

Thanks


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=553145

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default blank rows

Sub DeleteRows()
Dim iLastRow As Long
Dim i As Long

iLastRow = Cells(Rows.Count,"A").End(xlUp).Row
For i = iLastRow to 1 Step -1
If Application.CountA(Rows(i)) = 0 Then
Rows(i).Delete
End If
Next i
End Sub

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"phil2006" wrote in
message ...

I have a table of data, every few rows one is blank, is there a program
that deletes blank rows?

Thanks


--
phil2006
------------------------------------------------------------------------
phil2006's Profile:

http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=553145



  #3   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default blank rows

Manually..........

Select Column A

F5SpecialBlanksOK

EditDeleteEntire RowsOK


Gord Dibben MS Excel MVP

On Mon, 19 Jun 2006 04:52:44 -0500, phil2006
wrote:


I have a table of data, every few rows one is blank, is there a program
that deletes blank rows?

Thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Office 2000, How do I delete multiple blank rows at one time? gisieber Excel Worksheet Functions 2 May 16th 06 05:27 PM
blank rows between copied rows Arif Excel Discussion (Misc queries) 2 May 5th 06 12:18 PM
Listing data without blank rows Dannycol Excel Worksheet Functions 8 May 1st 06 06:05 PM
delete blank rows Pam C Excel Discussion (Misc queries) 1 January 17th 06 07:13 PM
Insert blank rows repeatedly between every data row in Excel Cool Excel Discussion (Misc queries) 2 January 9th 06 12:10 PM


All times are GMT +1. The time now is 03:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"