PC Review


Reply
Thread Tools Rate Thread

Deleting the empty rows in Excel

 
 
lbrrenga
Guest
Posts: n/a
 
      30th Jun 2007
Hi All,

I need your help to delete (at one single step) all empty rows in the
spread sheet. Can you please help me?

Thanks

Regards
Renga

 
Reply With Quote
 
 
 
 
shah shailesh
Guest
Posts: n/a
 
      30th Jun 2007
you can use the autofilter to filter for blanks, then delete the
filtered rows, turn off autofilter.

Regards,
Shailesh Shah
http://in.geocities.com/shahshaileshs/
(Excel Add-ins Page)
If You Can't Excel with Talent, Triumph with Effort.


"lbrrenga" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I need your help to delete (at one single step) all empty rows in the
> spread sheet. Can you please help me?
>
> Thanks
>
> Regards
> Renga
>



 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      30th Jun 2007
Hi lbrrenga

Emty rows or all rows with a empty cell in a column ?

There are examples on this page
http://www.rondebruin.nl/delete.htm

Use the Loop examples and read the tips below the three macros

You can use

If Application.CountA(.Rows(Lrow)) = 0 Then .Rows(Lrow).Delete
'This will delete the row if the whole row is empty (all columns)



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"lbrrenga" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi All,
>
> I need your help to delete (at one single step) all empty rows in the
> spread sheet. Can you please help me?
>
> Thanks
>
> Regards
> Renga
>

 
Reply With Quote
 
=?Utf-8?B?UGF4dG9uUm9hZEVuZA==?=
Guest
Posts: n/a
 
      30th Jun 2007
Ron/lbrrenga

Your loop suggests a limited number of rows under variable EndRow = 100.

If you swap it for

EndRow = Range("a11").UsedRange.Rows.Count

would this make it more dynamic?

Regards
--
BerbatovIsGod


"lbrrenga" wrote:

> Hi All,
>
> I need your help to delete (at one single step) all empty rows in the
> spread sheet. Can you please help me?
>
> Thanks
>
> Regards
> Renga
>
>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      1st Jul 2007
hi PaxtonRoadEnd

There are three examples on my site
Read the information

1) Loop through all the rows in the UsedRange (this is the first row with data till the last row with data on your sheet)
It can be slower if the column that you check doesn’t use so many rows or if your UsedRange is bigger then you data.
you can find more information on Debra Dalgleish's Web Site about this http://www.contextures.on.ca/xlfaqApp.html#Unused
2) You can fill in the StartRow and the EndRow yourself.
3) You can fill in the StartRow and the code will find the last row with data in the column that you want to check.



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"PaxtonRoadEnd" <(E-Mail Removed)> wrote in message news:F77592F0-28E5-4405-843C-(E-Mail Removed)...
> Ron/lbrrenga
>
> Your loop suggests a limited number of rows under variable EndRow = 100.
>
> If you swap it for
>
> EndRow = Range("a11").UsedRange.Rows.Count
>
> would this make it more dynamic?
>
> Regards
> --
> BerbatovIsGod
>
>
> "lbrrenga" wrote:
>
>> Hi All,
>>
>> I need your help to delete (at one single step) all empty rows in the
>> spread sheet. Can you please help me?
>>
>> Thanks
>>
>> Regards
>> Renga
>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 - deleting trailing empty rows ICTag Microsoft Excel New Users 5 17th Jul 2009 06:05 PM
Deleting non empty rows Jan Kronsell Microsoft Excel Programming 3 22nd Oct 2005 11:18 PM
Deleting Empty Rows Morris.C Microsoft Excel Discussion 2 13th Apr 2005 10:57 PM
Deleting Empty Rows couger77 Microsoft Excel Misc 4 6th Apr 2004 11:37 PM
VB in Excel for deleting Rows if the the row is empty Christoph Boes Microsoft VB .NET 1 17th Oct 2003 01:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:14 PM.