Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Delete rows if they are empty

Hi Guys,
already have asked that questions. But your proposals did not work.
Thanks anyway.
I have the following problem.
I have a table with the following structu

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
(this row
is empty for ex.)
Name 2 Surname 2 Adr1 2

......

Some rows are empty. I want to delete the rows if they are empty. So
the structure should look like this:

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
Name 2 Surname 2 Adr1 2

Do you have an idea for an easy code?

Cheers and thanks Christoph



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Delete rows if they are empty

This was found in Google search:

Sub DeleteBlanks()
'' Deletes all rows that have blanks in Column A .
Columns("A").SpecialCells(xlCellTypeBlanks).Entire Row.Delete
End Sub



--
sb
"chrismania" wrote in message
...
Hi Guys,
already have asked that questions. But your proposals did not work.
Thanks anyway.
I have the following problem.
I have a table with the following structu

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
(this row
is empty for ex.)
Name 2 Surname 2 Adr1 2

.....

Some rows are empty. I want to delete the rows if they are empty. So
the structure should look like this:

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
Name 2 Surname 2 Adr1 2

Do you have an idea for an easy code?

Cheers and thanks Christoph



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Delete rows if they are empty

Brilliant!!
Thanks it works perfectly!
Cheers Chris



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Delete rows if they are empty

You could select all your cells then sort your data. All the blank rows
will be sorted to the end.

--
Dianne

In ,
chrismania typed:
Hi Guys,
already have asked that questions. But your proposals did not work.
Thanks anyway.
I have the following problem.
I have a table with the following structu

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
(this row
is empty for ex.)
Name 2 Surname 2 Adr1 2

.....

Some rows are empty. I want to delete the rows if they are empty. So
the structure should look like this:

Name Surname Adress Number
Name 1 Surname 2 Adr1 1
Name 2 Surname 2 Adr1 2

Do you have an idea for an easy code?

Cheers and thanks Christoph



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from
http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Delete rows if they are empty

That deletes the rows if column A has an empty cell, whether the row is
empty or not - if that works, great. But it is not what you described.

--
Regards,
Tom Ogilvy


chrismania wrote in message
...
Brilliant!!
Thanks it works perfectly!
Cheers Chris



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Hpw do I delete multiple empty rows found between filled rows? Bill Excel Worksheet Functions 2 November 15th 09 07:12 PM
Delete Empty Rows JCG Excel Discussion (Misc queries) 4 December 18th 07 11:31 AM
How to Delete empty rows in excel in b/w rows with values Dennis Excel Worksheet Functions 3 August 28th 07 04:15 PM
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows Scott Excel Worksheet Functions 0 December 13th 06 01:25 AM
Delete rows if they are empty chrismania[_3_] Excel Programming 2 October 18th 03 04:27 PM


All times are GMT +1. The time now is 08:06 AM.

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"